Skip to content

Commit 9b49df2

Browse files
committed
Enable ruff PLW0211 rule
1 parent aedf953 commit 9b49df2

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
@@ -594,7 +594,10 @@ extend-select = [
594594
"PLW0127", # Self-assignment of variable
595595
"PLW0128", # Redeclared variable {name} in assignment
596596
"PLW0129", # Asserting on an empty string literal will never pass
597+
"PLW0131", # Named expression used without context
597598
"PLW0133", # Missing raise statement on exception
599+
"PLW0177", # Comparing against a NaN value; use math.isnan instead
600+
"PLW0211", # First argument of a static method should not be named {argument_name}
598601
# Per rule enables
599602
"RUF006", # Checks for asyncio dangling task
600603
"RUF015", # Checks for unnecessary iterable allocation for first element

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)