This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 2c56bdf3f788f45a1dd6513138ff4a5eeb40bab3
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Nov 1 19:46:19 2025 +0100

    [v3-1-test] Enable ruff PLW0211 rule (#57522) (#57684)
    
    (cherry picked from commit e5034857eef0caebca717c72163fcf9eb4950504)
    
    Co-authored-by: Jens Scheffler <[email protected]>
---
 pyproject.toml                                       | 3 +++
 task-sdk/tests/task_sdk/execution_time/test_cache.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 4965c934a65..feae5bdd786 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -591,7 +591,10 @@ extend-select = [
     "PLW0127", # Self-assignment of variable
     "PLW0128", # Redeclared variable {name} in assignment
     "PLW0129", # Asserting on an empty string literal will never pass
+    "PLW0131", # Named expression used without context
     "PLW0133", # Missing raise statement on exception
+    "PLW0177", # Comparing against a NaN value; use math.isnan instead
+    "PLW0211", # First argument of a static method should not be named 
{argument_name}
     "PLW0245", # super call is missing parentheses
     "PLW0406", # Module {name} imports itself
     "PLW0602", # Using global for {name} but no assignment is done
diff --git a/task-sdk/tests/task_sdk/execution_time/test_cache.py 
b/task-sdk/tests/task_sdk/execution_time/test_cache.py
index a53590f7b87..8667a5b73b1 100644
--- a/task-sdk/tests/task_sdk/execution_time/test_cache.py
+++ b/task-sdk/tests/task_sdk/execution_time/test_cache.py
@@ -41,7 +41,7 @@ class TestSecretCache:
         SecretCache.init()
 
     @staticmethod
-    def teardown_method(self) -> None:
+    def teardown_method() -> None:
         SecretCache.reset()
 
     def test_cache_accessible_from_other_process(self):

Reply via email to