-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
38 lines (29 loc) · 1.41 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tool.ruff]
target-version = "py311"
line-length = 120
# Rules to enable (see https://beta.ruff.rs/docs/rules/)
select = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
ignore = [
# FIXME: This should be enabled, but doesn't seem to work.
# You can leave this disabled if isort is separately run.
"I001", # (Import block is un-sorted of un-formatted)
"D100", # (Missing docstring in public module)
"D101", # (Missing docstring in public class)
"D102", # (Missing docstring in public method)
"D103", # (Missing docstring in public function)
"D104", # (Missing docstring in public package)
"D107", # (Missing docstring in `__init__`)
"D203", # (1 blank line required before class docstring) (Reason: To prefer D203 for no blank line)
"D212", # (Multi-line docstring summary should start at the first line) (Reason: To prefer D213 for second line)
"ANN101", # (Missing type annotation for `self` in method)
"T201", # (`print` found)
"RET505", # (Unnecessary `{branch}` after `return` statement)
]
[tool.ruff.per-file-ignores]
"tests/**" = [
"S101", # (Use of `assert` detected)
]
[tool.isort]
profile = "black"
[tool.black]
line_length = 120