From 510eb4e6a8f1153119ac51031913676abdc44bb7 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 4 Feb 2024 20:00:05 +0000 Subject: [3.11] Bump ruff to 0.2.0 (#114932) (#115008) --- .pre-commit-config.yaml | 2 +- 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) +] -- cgit v0.12