Skip to content

Commit 803ed8a

Browse files
[v3-1-test] Enable ruff PLW0211 rule (#57522) (#57684)
(cherry picked from commit e503485) Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
1 parent 2511111 commit 803ed8a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,10 @@ extend-select = [
591591
"PLW0127", # Self-assignment of variable
592592
"PLW0128", # Redeclared variable {name} in assignment
593593
"PLW0129", # Asserting on an empty string literal will never pass
594+
"PLW0131", # Named expression used without context
594595
"PLW0133", # Missing raise statement on exception
596+
"PLW0177", # Comparing against a NaN value; use math.isnan instead
597+
"PLW0211", # First argument of a static method should not be named {argument_name}
595598
"PLW0245", # super call is missing parentheses
596599
"PLW0406", # Module {name} imports itself
597600
"PLW0602", # Using global for {name} but no assignment is done

task-sdk/tests/task_sdk/execution_time/test_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def setup_method() -> None:
4141
SecretCache.init()
4242

4343
@staticmethod
44-
def teardown_method(self) -> None:
44+
def teardown_method() -> None:
4545
SecretCache.reset()
4646

4747
def test_cache_accessible_from_other_process(self):

0 commit comments

Comments
 (0)