diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-09-23 23:47:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 23:47:05 (GMT) |
commit | e256a7590a0149feadfef161ed000991376dc0e8 (patch) | |
tree | 18fe5510c79adf716694701ce9d177e5a88d4fcb /.pre-commit-config.yaml | |
parent | 38a887dc3ec52c4a7222279bf4b3ca2431b86de9 (diff) | |
download | cpython-e256a7590a0149feadfef161ed000991376dc0e8.zip cpython-e256a7590a0149feadfef161ed000991376dc0e8.tar.gz cpython-e256a7590a0149feadfef161ed000991376dc0e8.tar.bz2 |
Lint and format Tools/build/check-warnings.py (#124382)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cdb754..891934b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,10 @@ repos: args: [--exit-non-zero-on-fix] files: ^Lib/test/ - id: ruff + name: Run Ruff (lint) on Tools/build/check_warnings.py + args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml] + files: ^Tools/build/check_warnings.py + - id: ruff name: Run Ruff (lint) on Argument Clinic args: [--exit-non-zero-on-fix, --config=Tools/clinic/.ruff.toml] files: ^Tools/clinic/|Lib/test/test_clinic.py @@ -23,6 +27,11 @@ repos: rev: 24.8.0 hooks: - id: black + name: Run Black on Tools/build/check_warnings.py + files: ^Tools/build/check_warnings.py + language_version: python3.12 + args: [--line-length=79] + - id: black name: Run Black on Tools/jit/ files: ^Tools/jit/ language_version: python3.12 |