-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
52 lines (49 loc) · 1.25 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
51
52
# Ruff configuration
[tool.ruff]
line-length = 88
target-version = 'py311'
required-version = "0.5.1"
src = ["appsre", "acceptance"]
extend-exclude = [
".local", # used by poetry in local venv
".cache", # used by poetry in local venv
]
fix = true
[tool.ruff.lint]
preview = true
# defaults are ["E4", "E7", "E9", "F"]
extend-select = [
# flake8 default rules
"E1", # preview rule
"E2", # preview rule
"W",
# isort
"I",
# pylint
"PL",
# pyupgrade
"UP",
]
ignore = [
"PLR0904", # Too many public methods
"PLR0913", # Too many arguments
"PLR0917", # Too many positional arguments
]
[tool.ruff.format]
preview = true
# Mypy configuration
[tool.mypy]
files = ["appsre", "acceptance"]
plugins = ["pydantic.mypy"]
enable_error_code = ["truthy-bool", "redundant-expr"]
no_implicit_optional = true
check_untyped_defs = true
warn_unused_ignores = true
show_error_codes = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
# Below are all of the packages that don't implement stub packages. Mypy will throw an error if we don't ignore the
# missing imports. See: https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
module = ["reconcile.*"]
ignore_missing_imports = true