Skip to content

Commit 0fc24dd

Browse files
committed
ruff: enable more linting
1 parent 44cfc82 commit 0fc24dd

File tree

1 file changed

+49
-3
lines changed

1 file changed

+49
-3
lines changed

pyproject.toml

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,57 @@ packages = [
3232
[tool.ruff]
3333
target-version = "py311"
3434
line-length = 88
35-
select = ["E", "F", "I", "U", "N"]
36-
ignore = [ "E501" ]
35+
select = ["ALL"]
36+
ignore = [
37+
# pydocstyle
38+
"D",
39+
# todo comments
40+
"TD",
41+
# fixmes
42+
"FIX",
43+
44+
# Unused function argument
45+
"ARG001",
46+
"ARG002",
47+
48+
# Missing type annotation for `self` in method
49+
"ANN101",
50+
# Dynamically typed expressions (typing.Any)
51+
"ANN401",
52+
# Trailing comma missing
53+
"COM812",
54+
# Unnecessary `dict` call (rewrite as a literal)
55+
"C408",
56+
# Boolean-typed positional argument in function definition
57+
"FBT001",
58+
# Logging statement uses f-string
59+
"G004",
60+
# disabled on ruff's recommendation as causes problems with the formatter
61+
"ISC001",
62+
# Use of `assert` detected
63+
"S101",
64+
# `subprocess` call: check for execution of untrusted input
65+
"S603",
66+
# Starting a process with a partial executable path
67+
"S607",
68+
# Boolean default positional argument in function definition
69+
"FBT002",
70+
71+
# Too many statements
72+
"PLR0915",
73+
# Too many arguments in function definition
74+
"PLR0913",
75+
"PLR0912", # Too many branches
76+
# $X is too complex
77+
"C901",
78+
79+
"E501", # line too long
80+
"T201", # `print` found
81+
"PLR2004", # Magic value used in comparison
82+
]
3783

3884
[tool.mypy]
39-
python_version = "3.10"
85+
python_version = "3.11"
4086
pretty = true
4187
warn_redundant_casts = true
4288
disallow_untyped_calls = true

0 commit comments

Comments
 (0)