From 424e666bedeb176329e24c00e11b2f87c0724b1b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:53:41 +0000 Subject: [PATCH] [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'