unstructured
/
pyproject.toml
37 строк · 1.4 Кб
1[tool.black]
2line-length = 100
3
4[tool.pyright]
5pythonPlatform = "Linux"
6pythonVersion = "3.8"
7reportUnnecessaryCast = true
8reportUnnecessaryTypeIgnoreComment = true
9stubPath = "./typings"
10typeCheckingMode = "strict"
11verboseOutput = true
12
13[tool.ruff]
14line-length = 100
15
16# -- changes made here should also be made in `.pre-commit-config.yaml` and `Makefile` --
17[tool.ruff.lint]
18select = [
19"C4", # -- flake8-comprehensions --
20"COM", # -- flake8-commas --
21"E", # -- pycodestyle errors --
22"F", # -- pyflakes --
23"I", # -- isort (imports) --
24"PLR0402", # -- Name compared with itself like `foo == foo` --
25"PT", # -- flake8-pytest-style --
26"SIM", # -- flake8-simplify --
27"UP015", # -- redundant `open()` mode parameter (like "r" is default) --
28"UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
29"UP032", # -- Use f-string instead of `.format()` call --
30"UP034", # -- Avoid extraneous parentheses --
31]
32ignore = [
33"COM812", # -- over aggressively insists on trailing commas where not desireable --
34"PT011", # -- pytest.raises({exc}) too broad, use match param or more specific exception --
35"PT012", # -- pytest.raises() block should contain a single simple statement --
36"SIM117", # -- merge `with` statements for context managers that have same scope --
37]
38