diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-02-04 20:00:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-04 20:00:05 (GMT) |
commit | 510eb4e6a8f1153119ac51031913676abdc44bb7 (patch) | |
tree | 6f0f86ab20e9dc883072c520db2690c281c07fa2 | |
parent | fef6c9bbde887abbebacc16953ad22f6354440b0 (diff) | |
download | cpython-510eb4e6a8f1153119ac51031913676abdc44bb7.zip cpython-510eb4e6a8f1153119ac51031913676abdc44bb7.tar.gz cpython-510eb4e6a8f1153119ac51031913676abdc44bb7.tar.bz2 |
[3.11] Bump ruff to 0.2.0 (#114932) (#115008)
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | Lib/test/.ruff.toml | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecf5d93..ad9593c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.7 + rev: v0.2.0 hooks: - id: ruff name: Run Ruff on Lib/test/ diff --git a/Lib/test/.ruff.toml b/Lib/test/.ruff.toml index 89e33b2..233ee02 100644 --- a/Lib/test/.ruff.toml +++ b/Lib/test/.ruff.toml @@ -1,7 +1,4 @@ fix = true -select = [ - "F811", # Redefinition of unused variable (useful for finding test methods with the same name) -] extend-exclude = [ # Excluded (these aren't actually executed, they're just "data files") "tokenizedata/*.py", @@ -22,3 +19,8 @@ extend-exclude = [ "test_yield_from.py", "time_hashlib.py", ] + +[lint] +select = [ + "F811", # Redefinition of unused variable (useful for finding test methods with the same name) +] |