forked from edgedb/edgedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (91 loc) · 2.24 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# ========================
# BLACK
# ========================
[tool.black]
line-length = 79
target-version = ["py39"]
# ========================
# MYPY
# ========================
[tool.mypy]
python_version = "3.9"
plugins = "edb/tools/mypy/plugin.py"
follow_imports = "normal"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_configs = true
show_column_numbers = true
[[tool.mypy.overrides]]
module = [
"edb.common.adapter",
"edb.edgeql.compiler.*",
"edb.edgeql.codegen",
"edb.edgeql.declarative",
"edb.edgeql.tracer",
"edb.graphql.types",
"edb.ir.*",
"edb.pgsql.metaschema",
"edb.pgsql.compiler.*",
"edb.repl.*",
"edb.schema.*",
"edb.schema.reflection.*",
"edb.server.cluster",
"edb.server.config",
"edb.server.connpool.*",
"edb.server.pgcluster",
"edb.server.pgconnparams",
]
# Equivalent of --strict on the command line,
# but without disallow_untyped_calls:
disallow_subclassing_any = true
disallow_any_generics = true
# disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"edb.common.checked",
"edb.common.compiler",
"edb.common.ordered",
"edb.common.parametric",
"edb.common.struct",
"edb.common.topological",
"edb.common.uuidgen",
]
# Equivalent of --strict on the command line:
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
# ========================
# COVERAGE
# ========================
[tool.coverage.run]
branch = false
plugins = ["Cython.Coverage"]
parallel = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if debug",
"raise NotImplementedError",
"if __name__ == .__main__.",
]
show_missing = true
ignore_errors = true