From bc703528568f70d5fd1c36b3a4f7fe221021bfde Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 2 Feb 2024 21:04:15 +0000 Subject: [PATCH] [3.11] Bump ruff to 0.2.0 (#114932) --- .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 ecf5d93f9b2be6..ad9593cc38a74f 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 89e33b2d63c8f6..233ee0233c31fe 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) +]