Skip to content

Commit ae625b5

Browse files
committed
add .ruff.toml
1 parent 2a50490 commit ae625b5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.ruff.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
line-length = 128
2+
indent-width = 4
3+
4+
[lint]
5+
select = [
6+
# Pyfles
7+
"F",
8+
# Pylint
9+
"PL",
10+
# isort
11+
"I",
12+
]
13+
14+
[lint.per-file-ignores]
15+
"__init__.py" = [
16+
# unused-import
17+
"F401",
18+
# import violations
19+
"E402"
20+
]
21+
"**/{test,docs}/*" = [
22+
# import violations
23+
"E402",
24+
# https://docs.astral.sh/ruff/rules/magic-value-comparison/
25+
"PLR2004"
26+
]
27+
28+
[lint.pylint]
29+
30+
max-args = 6
31+
32+
[format]
33+
quote-style = "single"

0 commit comments

Comments
 (0)