Skip to content

Releases: Takishima/cmake-pre-commit-hooks

cmake-pre-commit-hooks v1.9.6

02 Jun 10:33
07b21a0
Compare
Choose a tag to compare

Changed

  • Apply new linter/formatters

Fixed

  • Fixed a bug where a condition always evaluated to true

Repository

  • Update GitHub Action action/setup-python to v5
  • Update GitHub Action codecov/codecov-action from v3 to v4
  • Update GitHub Action ilammy/msvc-dev-cmd from v1.12.1 to v1.13.0
  • Update GitHub Action thomaseizinger/create-pull-request to v1.4.0
  • Update adrienverge/yamllint hook to v1.35.1
  • Update astral-sh/ruff-pre-commit hook to v0.4.5
  • Update codespell-project/codespell hook to v2.3.0
  • Update Lucas-C/pre-commit-hook hook to v1.5.5
  • Update pre-commit/pre-commit-hooks hook to v4.6.0
  • Update shellcheck-py/shellcheck-py hook to v0.10.0

cmake-pre-commit-hooks v1.9.5

15 Dec 12:46
d2b93ec
Compare
Choose a tag to compare

Added

  • Added metadata to mark support for Python 3.12 and enabled CI checks for it
  • Implemented PEP-621

Changed

  • Remove all Python linters/formatters in favour of ruff
  • Require setuptools>=61.0 in preparation for PEP-621

Repository

  • Fix GitHub workflows
  • Update astral-sh/ruff-pre-commit to v0.1.8
  • Update adrienverge/yamllint hook to v1.33.0

cmake-pre-commit-hooks v1.9.4

15 Oct 13:32
88c144f
Compare
Choose a tag to compare

Added

  • Added dependency on the Python attrs library

Changed

  • Improved the printing of output when multiple files have been processed

Repository

  • Update pre-commit/pre-commit-hooks hook to v4.5.0

cmake-pre-commit-hooks v1.9.3

09 Oct 13:46
c0d7df1
Compare
Choose a tag to compare

Fixed

  • Fixed an issue when handling -- arguments

Repository

  • Update asottile/blacken-docs hook to v1.16.0
  • Update astral-sh/ruff-pre-commit to v0.0.292
  • Update codespell-project/codespell hook to v2.2.6
  • Update Lucas-C/pre-commit-hooks hook to v1.5.4
  • Update psf/black hook to v23.9.1
  • Update shellcheck-py/shellcheck-py hook to v0.9.0.6
  • Update GitHub Action stefanzweifel/git-auto-commit-action to v5

cmake-pre-commit-hooks v1.9.2

19 Jul 05:44
248f0af
Compare
Choose a tag to compare

Added

  • Added --no-cmake-configure option to avoid calling CMake configure but still use a compilation database if one can
    be found

Repository

  • Update asottile/blacken-docs hook to v1.15.0
  • Update astral-sh/ruff-pre-commit to v0.0.278
  • Update charliermarsh/ruff-pre-commit hook to v0.0.275
  • Update codespell-project/codespell hook to v2.2.5
  • Update psf/black hook to v23.7.0
  • Upgrade GitHub Action thomaseizinger/create-pull-request to v1.3.1

cmake-pre-commit-hooks v1.9.1

18 Jun 10:20
1939369
Compare
Choose a tag to compare

Changed

  • Add proper support for clang-format "linter" mode (ie. --dry-run)

Fixed

  • Avoid setting up CMake arguments for clang-format hook

Repository

  • Update release drafting GitHub workflow
  • Modify pull requests workflow to automatically update CHANGELOG file if it was created by pre-commit.ci
  • Update charliermarsh/ruff-pre-commit hook to v0.0.272
  • Update shellcheck-py/shellcheck-py hook to v0.9.0.5

cmake-pre-commit-hooks v1.9.0

24 May 18:52
f361415
Compare
Choose a tag to compare

Added

  • Added Python tests using PyTest
  • Added support for parsing hook parameters from TOML configuration files
  • Added option to dump the current configuration as TOML-formatted output on the standard output (--dump-toml)
  • Added option to parse CMake trace output to detect files generated using configure_file(...)

Fixed

  • Fixed potential issue with CppCheck hook always running on all files in compile database

Changed

  • CppCheck hook will now exclude C++ header files by default since those are not present within the compilatioon databasebecauzse
  • Make default logging level INFO instead of WARNING
  • Move all CMake handling code into dedicated sub-module
  • Minor adjustments to logging output format
  • Update README

Repository

  • Use ruff for linting over other Python linters
  • System tests now run using LOGLEVEL=DEBUG
  • Improved configuration for external linters (e.g. SonarCloud, Codacy)
  • Update yamllint hook to v1.32.0

cmake-pre-commit-hooks v1.8.1

20 Apr 21:59
6fb7fcd
Compare
Choose a tag to compare

Added

  • Added support for C++ module files by default

Fixed

  • Fixed some typos in the README file (thanks to @onuralpszr)

Changed

  • Require users to explicitly set -B|--build-dir if they pass --preset to CMake (see issue #63)

Repository

  • Update Lucas-C/pre-commit-hooks hook to v1.5.1
  • Update codespell to v2.2.4
  • Update yamllint hook to v1.30.0
  • Update black hook to v23.3.0
  • Update bandit hook to v1.7.5
  • Update isort hook to v5.12.0

cmake-pre-commit-hooks v1.8.0

16 Feb 11:07
711601f
Compare
Choose a tag to compare

Added

  • Added support for the CMake --preset command line argument

cmake-pre-commit-hooks v1.7.0

09 Feb 22:30
9347819
Compare
Choose a tag to compare

Added

  • Added support for reading compile_commands.json (generated by CMake) when running the hooks in order to
    automatically discover files

Updated

  • Added some more pre-commit hooks:
    • shellcheck
    • bandit

Repository

  • Add new badges to README file for CodeFactor.io and SonarCloud
  • Update black hook to v23.1.0