-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
50 lines (44 loc) · 1.05 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
39
40
41
42
43
44
45
46
47
48
49
50
[tool.ruff]
line-length = 120
src = ["permit"]
exclude = ["permit/api/models.py"]
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"N", # pep8
"I", # isort
"BLE", # flake8 blind except
"FBT", # flake8 boolean trap
"B", # flake8 bug bear
"C4", # flake8 comprehensions
"PIE", # flake8 pie
"T20", # flake8 print
"SIM", # flake8 simplify
"ARG", # flake8 unused arguments
"PTH", # flake8 pathlib
"ASYNC", # flake8 Asyncio rules
# "UP", # pyupgrade
"ERA", # comment out code
"RUF", # ruff rules
"FAST", # FastAPI rules
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.mypy]
python_version = "3.8"
packages = ["permit"]
plugins = ["pydantic.mypy"]
check_untyped_defs = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = ["permit.api.models"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["tests"]
ignore_errors = true