Skip to content
Open
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
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@

# Secret detection
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.95.3
rev: v3.95.6
hooks:
- id: trufflehog
args: ['--only-verified', '--exclude-paths=tools/configs/trufflehog-exclude.txt']

# C++ formatting (check-only, use 'clang-format -i' to fix)
# Note: Install matching clang-format version locally to avoid formatting differences
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.7
rev: v22.1.5
hooks:
- id: clang-format
args: ['--dry-run', '--Werror']
Expand All @@ -52,15 +52,15 @@

# Python formatting (report-only)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.14
rev: v0.15.18
hooks:
- id: ruff
- id: ruff-format
args: [--check]

# Python type checking
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.409
rev: v1.1.410
hooks:
- id: pyright
files: ^(tools|test|\.github/scripts)/.*\.py$
Expand All @@ -77,7 +77,7 @@

# uv lockfile sync (keeps tools/uv.lock current with tools/pyproject.toml)
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.15
rev: 0.11.23
hooks:
- id: uv-lock
files: ^tools/(pyproject\.toml|uv\.lock)$
Expand Down Expand Up @@ -123,7 +123,7 @@

# JSON Schema validation for build-config.json
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.2
rev: 0.37.3
hooks:
- id: check-jsonschema
name: Validate .github/build-config.json
Expand All @@ -132,29 +132,29 @@

# Renovate config validation (schema-checks the dormant renovate.json)
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.150.0
rev: 43.234.1
hooks:
- id: renovate-config-validator
files: ^\.github/renovate\.json$

# Markdown linting (report-only, doesn't auto-fix)
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
rev: v0.49.0
hooks:
- id: markdownlint
exclude: ^(translations/|docs/(zh|ko|tr|ru|ja|de|es|fa|fr|he|uk)/|CHANGELOG\.md)

# Prose linting (documentation quality)
- repo: https://github.com/errata-ai/vale
rev: v3.14.2
rev: v3.15.1
hooks:
- id: vale
files: ^docs/
args: ['--no-exit'] # Don't fail on warnings, just report

# Spell checking (report-only, doesn't auto-fix)
- repo: https://github.com/crate-ci/typos
rev: v1.46.2
rev: v1.47.2
hooks:
- id: typos
args: [] # Empty args disables auto-fix mode
Expand Down Expand Up @@ -212,7 +212,7 @@

- id: check-no-qtest-ignore-message
name: Check for QTest::ignoreMessage in test code
entry: bash -c 'if grep -nH "QTest::ignoreMessage" "$@" 2>/dev/null; then echo "::error::QTest::ignoreMessage found. Use expectLogMessage+verifyExpectedLogMessage or ignoreLogMessage instead." >&2; exit 1; fi' --

Check failure on line 215 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

215:201 [line-length] line too long (220 > 200 characters)
language: system
types: [c++]
files: ^test/
Expand All @@ -220,7 +220,7 @@

- id: check-no-fixed-qwait
name: Check for fixed-delay QTest::qWait in test code
entry: bash -c 'if grep -EnH "qWait\([1-9][0-9]*\)" "$@" 2>/dev/null; then echo "::error::QTest::qWait(<non-zero>) found. Use QTRY_VERIFY_WITH_TIMEOUT, QTRY_COMPARE_WITH_TIMEOUT, or QSignalSpy::wait with a TestTimeout::* constant instead." >&2; exit 1; fi' --

Check failure on line 223 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

223:201 [line-length] line too long (267 > 200 characters)
language: system
types: [c++]
files: ^test/
Expand Down
Loading