-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
31 lines (28 loc) · 1.24 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
target-version = "py310"
[tool.ruff]
line-length = 120
select = ["ALL"]
ignore = [
"ANN", # Type hints related, let mypy handle these
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"PTH", # User Pathlib stuff over os.*. Should migrate to Pathlib at some point
"SIM108", # Use ternary operator ... Ternary is harmful for readability in some cases
"TRY003", # Avoid specifying long messages outside the exception class
"D104", # Missing docstring in public package
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D107", # Missing docstring in `__init__`
"A003", # Class attribute `id` is shadowing a python builtin
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"S101", # Use of `assert` detected
]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
exclude = ['server/tests']