-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
76 lines (68 loc) · 1.69 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[tool.black]
line-length = 128
target-version = ['py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| \.tox
| \.venv
| \.env
| _build
| buck-out
| build
| dist
)/
'''
[tool.mypy]
plugins = [
'inmanta.mypy',
'pydantic.mypy',
]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = 'silent'
no_implicit_optional = true
no_implicit_reexport = true
show_error_codes = true
strict_optional = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_untyped_fields = true
[tool.irt.build.python]
hooks = { 'pre' = 'pre-build.sh' }
[tool.irt.build.python.subprojects.pytest-inmanta-extensions]
directory = "tests_common"
[tool.irt.publish.python]
public = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--cov-config=pyproject.toml"
markers = [
"slowtest",
"link_check",
"parametrize_any: only execute one of the parameterized cases when in fast mode (see documentation in conftest.py)",
"db_restore_dump(dump): mark the db dump to restore. To be used in conjunction with the `migrate_db_from` fixture."
]
log_format = "%(asctime)s.%(msecs)03d %(levelname)s %(message)s"
[tool.coverage.run]
# Needed by pytest-cov: https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html#if-you-use-multiprocessing
concurrency = ["thread"]
parallel = true
sigterm = true
branch = false
[tool.mypy-baseline]
sort_baseline = true