-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
62 lines (50 loc) · 1.18 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
53
54
55
56
57
58
59
60
61
62
[tool.mypy]
# Config file
warn_unused_configs = true
# Import discovery
namespace_packages = true
# Platform configuration
python_version = "3.11"
# Disallow dynamic typing
disallow_any_generics = true
disallow_subclassing_any = true
# Untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
# None and Optional handling
no_implicit_optional = true
# Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
# Miscellaneous strictness flags
local_partial_types = true
no_implicit_reexport = true
strict_equality = true
strict = true
# Configuring error messages
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
# Advanced options
plugins = [
"pydantic.mypy",
]
warn_incomplete_stub = true
[tool.pydantic-mypy]
init_forbid_extra = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.isort]
line_length = 100
py_version = "311"
profile = "black"
known_first_party = ["randmuzposter"]