Skip to content

Commit 21bdf35

Browse files
committed
add some rules to ruff
1 parent 37f51cd commit 21bdf35

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ lint.ignore = [
5555
"ARG002", # unused arguments
5656
"SIM105", # try-except-pass
5757
]
58+
lint.select = ["C", "E", "W", "F", "I", "B", "C4", "ARG", "SIM", "PTH", "PL", "TID"]
59+
lint.ignore = [
60+
"W291", # Trailing whitespace
61+
"E501", # Line too long
62+
"W293", # Blank line contains whitespace
63+
"PLR0912", # Too many branches
64+
"PLR2004", # Magic values
65+
"PLR0915", # Too many statements
66+
"PLW0603", # Global statement
67+
"PLR0913", # Too many arguments
68+
"B010", # setattr
69+
]
5870

5971
[tool.ruff.format]
6072
quote-style = "single"

0 commit comments

Comments
 (0)