Skip to content

Commit 0359962

Browse files
committed
stricter ruff rules
1 parent cbba526 commit 0359962

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,28 @@ exclude_lines = [
4343

4444
[tool.ruff]
4545
line-length = 120
46+
target-version = "py39"
4647
[tool.ruff.lint]
4748
select = [
4849
"D", # docstrings
50+
"PERF", # Performance
51+
"W",
52+
"F",
53+
"UP", # deprecated Python
54+
# Flake8
55+
"A",
56+
"ASYNC",
57+
"B",
58+
"C4",
59+
"PIE800",
60+
"PT",
61+
"SIM",
62+
"SLOT",
63+
"YTT",
64+
65+
"PLE",
66+
"FURB",
67+
"PLC0207",
4968
]
5069
ignore = [
5170
"D100", # "Missing docstring in public module"
@@ -65,3 +84,7 @@ ignore = [
6584
"E501", # line too long
6685
"F401", # "unused" imports
6786
]
87+
88+
[tool.ruff.lint.per-file-ignores]
89+
"tests/*.py" = ["D"]
90+
"conftest.py" = ["D"]

0 commit comments

Comments
 (0)