diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-09-15 05:45:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 05:45:23 (GMT) |
commit | a95d159bba5756469222398660c378a7e4d253b7 (patch) | |
tree | edbc57884a5ee5c12e09730cef6132d67c12ec39 /.pre-commit-config.yaml | |
parent | 7a20797056173b4628b5e23d2122a665ad7f5ee5 (diff) | |
download | cpython-a95d159bba5756469222398660c378a7e4d253b7.zip cpython-a95d159bba5756469222398660c378a7e4d253b7.tar.gz cpython-a95d159bba5756469222398660c378a7e4d253b7.tar.bz2 |
[3.11] gh-60283: Check for redefined test names in CI (#109161) (#109366)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit 3cb9a8edca6e3fa0f0045b03a9a6444cf8f7affe)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 889bd85..980b616 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,17 @@ repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.288 + hooks: + - id: ruff + name: Run Ruff on Lib/test/ + args: [--exit-non-zero-on-fix] + files: ^Lib/test/ + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: + - id: check-toml + exclude: ^Lib/test/test_tomllib/ - id: check-yaml - id: trailing-whitespace types_or: [c, python, rst] |