Skip to content

Commit 8b7de2d

Browse files
committed
Refactor ruff linting rules to remove unnecessary ignores and simplify configuration
1 parent 22757cc commit 8b7de2d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pyproject.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,13 @@ select = [
9696

9797
ignore = [
9898
"E501", # Line too long, handled by formatter
99-
"S101", # Use of assert (common in tests)
100-
"S104", # Possible binding to all interfaces
101-
"S105", # Possible hardcoded password
102-
"S106", # Possible hardcoded password
103-
"S107", # Possible hardcoded password
104-
"S108", # Probable insecure usage of temp file/directory
105-
"T201", # print found (we use print statements for CLI output)
10699
"B008", # Do not perform function calls in argument defaults
107-
"N806", # Variable name should be lowercase
108-
"SIM118", # Use dict.get() instead of conditional assignment
109100
]
110101

111102
# Allow fix for all enabled rules (when `--fix`) is provided.
112103
fixable = ["ALL"]
113104
unfixable = []
114105

115-
# Allow unused variables when underscore-prefixed.
116-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
117-
118106
[tool.ruff.format]
119107
# Like Black, use double quotes for strings.
120108
quote-style = "double"

0 commit comments

Comments
 (0)