Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions cmake_pc_hooks/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
),
)

Expand Down
2 changes: 1 addition & 1 deletion tests/python/_argparse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _add_simple_args(parser):
# ------------------------------------------------------------------------------


@pytest.fixture()
@pytest.fixture
def simple_toml_content():
return dedent(
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/python/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# ==============================================================================


@pytest.fixture()
@pytest.fixture
def compile_commands(tmp_path):
path = tmp_path / 'build' / 'compile_commands.json'

Expand Down
Loading