Skip to content

Commit 55bc286

Browse files
committed
add some rules to ruff
1 parent 8f3dec8 commit 55bc286

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
@@ -33,6 +33,18 @@ extend-exclude = [
3333
"build",
3434
"venv*",
3535
]
36+
lint.select = ["C", "E", "W", "F", "I", "B", "C4", "ARG", "SIM", "PTH", "PL", "TID"]
37+
lint.ignore = [
38+
"W291", # Trailing whitespace
39+
"E501", # Line too long
40+
"W293", # Blank line contains whitespace
41+
"PLR0912", # Too many branches
42+
"PLR2004", # Magic values
43+
"PLR0915", # Too many statements
44+
"PLW0603", # Global statement
45+
"PLR0913", # Too many arguments
46+
"B010", # setattr
47+
]
3648

3749
[tool.ruff.format]
3850
quote-style = "single"

0 commit comments

Comments
 (0)