Skip to content

Commit 615d4cf

Browse files
committed
extract ruff settings into ruff.toml
1 parent 88231ff commit 615d4cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ruff.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
line-length = 100
2+
3+
[lint]
4+
# E501: Lines too long (maximum of 79 characters).
5+
ignore = [
6+
"E501", # Long line that exceeds maximum allowed length.
7+
"F841", # Local variable referenced before assignment, this is annoying during development.
8+
]
9+
10+
# Allow unused variables when underscore-prefixed.
11+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
12+
13+
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
14+
[lint.per-file-ignores]
15+
"__init__.py" = ["E402", "F401"]
16+
"**/{tests,docs,tools}/*" = ["E402"]

0 commit comments

Comments
 (0)