From: Alex Waygood Date: Sun, 4 Feb 2024 20:00:05 +0000 (+0000) Subject: [3.11] Bump ruff to 0.2.0 (#114932) (#115008) X-Git-Tag: v3.11.8~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=510eb4e6a8f1153119ac51031913676abdc44bb7;p=thirdparty%2FPython%2Fcpython.git [3.11] Bump ruff to 0.2.0 (#114932) (#115008) --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecf5d93f9b2b..ad9593cc38a7 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 89e33b2d63c8..233ee0233c31 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) +]