diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-02-02 21:04:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 21:04:15 (GMT) |
commit | 920b89f62751e64a35fa1bebc03701af6d6f31f2 (patch) | |
tree | d25ccfbc8dcc5b7e46cd3d85ee57e7a83caf4be1 | |
parent | 7e2703bbff09c3c72c225790e5c71f423351b2d1 (diff) | |
download | cpython-920b89f62751e64a35fa1bebc03701af6d6f31f2.zip cpython-920b89f62751e64a35fa1bebc03701af6d6f31f2.tar.gz cpython-920b89f62751e64a35fa1bebc03701af6d6f31f2.tar.bz2 |
Bump ruff to 0.2.0 (#114932)
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | Lib/test/.ruff.toml | 8 | ||||
-rw-r--r-- | Tools/clinic/.ruff.toml | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19033ce..69d8523 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 d6c1d87..1c9bac5 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 (run with the other AC files in its own separate ruff job in pre-commit) "test_clinic.py", @@ -21,3 +18,8 @@ extend-exclude = [ "test_pkg.py", "test_yield_from.py", ] + +[lint] +select = [ + "F811", # Redefinition of unused variable (useful for finding test methods with the same name) +] diff --git a/Tools/clinic/.ruff.toml b/Tools/clinic/.ruff.toml index cbb3a9a..c019572 100644 --- a/Tools/clinic/.ruff.toml +++ b/Tools/clinic/.ruff.toml @@ -1,5 +1,7 @@ target-version = "py310" fix = true + +[lint] select = [ "F", # Enable all pyflakes rules "UP", # Enable all pyupgrade rules by default |