Skip to content

Commit

Permalink
new ruff rule
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 27, 2024
1 parent c2e2e90 commit 28676e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ ignore = [
"N818", # Exception name `FooBar` should be named with an Error suffix
"PERF", # Perflint
"PLC0415", # `import` should be at the top-level of a file
"PLC1901", # PLC1901 `x == ""` can be simplified to `not x` as an empty string is falsey
"PLC2701", # Private name import `x` from external module `y`
"PLR0904", # Too many public methods (x > y)
"PLR0911", # Too many return statements (8 > 6)
Expand Down Expand Up @@ -102,9 +101,10 @@ ignore = [
# T201 == print()
# T203 == pprint()
# TRY003 == raise-vanilla-args
# "B904", # Use `raise from` to specify exception cause
# B904 == Use `raise from` to specify exception cause
# PLC1901 == `x == ""` can be simplified to `not x` as an empty string is falsey
".github/workflows/*" = ["B904", "EM101", "EM102", "EM103", "T201", "T203"]
"psutil/tests/*" = ["B904", "EM101", "EM102", "EM103", "TRY003"]
"psutil/tests/*" = ["B904", "EM101", "EM102", "EM103", "PLC1901", "TRY003"]
"scripts/*" = ["B904", "EM101", "EM102", "EM103", "T201", "T203"]
"scripts/internal/*" = ["B904", "EM101", "EM102", "EM103", "T201", "T203", "TRY003"]
"setup.py" = [
Expand Down

0 comments on commit 28676e0

Please sign in to comment.