Skip to content

Commit 740a7e5

Browse files
committed
Add ruff TID and D inspections.
1 parent fe9c8f8 commit 740a7e5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pyproject.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ typeCheckingMode = "recommended"
1212
line-length = 100
1313
indent-width = 4
1414
fix = true
15+
src = ["nameless"]
1516

1617
[tool.ruff.format]
1718
indent-style = "space"
1819

1920
[tool.ruff.lint]
20-
select = ["E", "F", "UP", "B", "SIM", "I", "Q"]
21+
select = ["E", "F", "UP", "B", "SIM", "I", "Q", "TID", "D"]
22+
ignore = ["D1", "D417"]
2123

2224
[tool.ruff.lint.per-file-ignores]
23-
"__init__.py" = ["F403"]
25+
"__init__.py" = ["F403", "TID252"]
2426
"*" = ["B008", "F401", "F821", "F841"]
2527

2628
[tool.ruff.lint.flake8-tidy-imports]
2729
ban-relative-imports = "all"
30+
31+
[tool.ruff.lint.pydocstyle]
32+
convention = "numpy"

0 commit comments

Comments
 (0)