Skip to content

Commit 88231ff

Browse files
committed
extract ruff settings into ruff.toml
1 parent 56d9af3 commit 88231ff

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pyproject.toml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,6 @@ jobs = 16 #detect number of cores
9191
disable = "C,logging-fstring-interpolation,line-too-long,fixme,broad-exception-caught,missing-module-docstring,too-many-instance-attributes,too-few-public-methods,too-many-arguments,too-many-locals,too-many-branches,too-many-statements,use-dict-literal,cyclic-import,duplicate-code,too-many-public-methods"
9292
enable = "no-else-return,consider-using-in"
9393

94-
[tool.ruff]
95-
line-length = 100 # Same as Black.
96-
97-
target-version = "py310"
98-
99-
[tool.ruff.lint]
100-
# Never enforce `E501` (line length violations).
101-
#"F841" will auto remove unused variables which is annoying during development, pylint catches this anyway
102-
ignore = ["E501", "E902", "F841"]
103-
# Allow unused variables when underscore-prefixed.
104-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
105-
106-
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
107-
[tool.ruff.lint.per-file-ignores]
108-
"__init__.py" = ["E402", "F401"]
109-
110-
11194
[tool.coverage.run]
11295
omit = ["*/test/*", "__init__.py"]
11396

0 commit comments

Comments
 (0)