From 1f67532a81fe0f2c92e45f7d8ffd7c4cb9caadcb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:01:04 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - https://github.com/PyCQA/doc8/: v1.1.1 → v2.0.0 - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/adrienverge/yamllint.git: v1.35.1 → v1.37.1](https://github.com/adrienverge/yamllint.git/compare/v1.35.1...v1.37.1) - [github.com/asottile/blacken-docs: 1.16.0 → 1.19.1](https://github.com/asottile/blacken-docs/compare/1.16.0...1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.12.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.12.9) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 853491a..d600cbe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -25,40 +25,40 @@ repos: - id: remove-tabs - repo: https://github.com/PyCQA/doc8/ - rev: v1.1.1 + rev: v2.0.0 hooks: - id: doc8 require_serial: false additional_dependencies: [tomli] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell files: .*\.(py|txt|cmake|md|rst|sh|ps1|hpp|tpp|cpp|cc)$ args: [-I, .codespell.allow] - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck require_serial: false args: [-x, --severity=info] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint - repo: https://github.com/asottile/blacken-docs - rev: 1.16.0 + rev: 1.19.1 hooks: - id: blacken-docs args: [-S, -l, '120'] additional_dependencies: [black==22.12.0] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.12.9 hooks: - id: ruff-format name: ruff (format) From e877c6d6372910c41dc687c5f13a635db5c38367 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:01:15 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cmake_pc_hooks/_utils.py | 3 +-- tests/python/_argparse_test.py | 2 +- tests/python/conftest.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmake_pc_hooks/_utils.py b/cmake_pc_hooks/_utils.py index e887e2e..aaf3ba8 100644 --- a/cmake_pc_hooks/_utils.py +++ b/cmake_pc_hooks/_utils.py @@ -88,8 +88,7 @@ def parse_args(self, args): '--read-json-db', action='store_true', help=( - 'Run hooks on files found in compile_commands.json ' - '(if found and in addition to files specified on CLI)' + 'Run hooks on files found in compile_commands.json (if found and in addition to files specified on CLI)' ), ) diff --git a/tests/python/_argparse_test.py b/tests/python/_argparse_test.py index 64ff6c1..754f50b 100644 --- a/tests/python/_argparse_test.py +++ b/tests/python/_argparse_test.py @@ -35,7 +35,7 @@ def _add_simple_args(parser): # ------------------------------------------------------------------------------ -@pytest.fixture() +@pytest.fixture def simple_toml_content(): return dedent( """ diff --git a/tests/python/conftest.py b/tests/python/conftest.py index fa79e4a..99e360d 100644 --- a/tests/python/conftest.py +++ b/tests/python/conftest.py @@ -8,7 +8,7 @@ # ============================================================================== -@pytest.fixture() +@pytest.fixture def compile_commands(tmp_path): path = tmp_path / 'build' / 'compile_commands.json'