Skip to content

Commit

Permalink
chore: Use noqa for PLW0603 (globals)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 15, 2024
1 parent 53850ff commit b467750
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ builtins-ignorelist = ["copyright"]
"ARG001", # unused pytest fixture
"FBT003", # boolean positional value
"PLR2004", # unnamed constant value
"PLW0602", # globals
"PLW0603", # globals
"PT004", # fixture naming convention
"S101", # assert
"TRY002", # raise
Expand Down
2 changes: 1 addition & 1 deletion tests/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def passes(*args):


def closes(*args):
global opened
global opened # noqa: PLW0603
opened = True
try:
raise Exception("message")
Expand Down

0 comments on commit b467750

Please sign in to comment.