-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 1.65 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (69 loc) · 1.65 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
77
[tool.black]
line-length = 120
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
warn_redundant_casts = true
strict_equality = true
show_error_codes = true
# Roadmap: these can be enabled after fixing the errors
no_implicit_optional = false # 24 errors
disallow_untyped_decorators = false # 10 errors
check_untyped_defs = false # 58 errors
warn_return_any = false # 62 errors
exclude = [
"ydb/_grpc/v3/",
"ydb/_grpc/v4/",
"ydb/_grpc/v5/",
"ydb/_grpc/v6/",
"ydb.sqlalchemy.*",
"tests/",
"examples/",
"docs/",
# Exclude test files inside ydb directory
".*_test\\.py$",
]
# External dependencies - ignore missing imports
[[tool.mypy.overrides]]
module = [
"google.protobuf.*",
"grpc.*",
"aiohttp.*",
"yandexcloud.*",
"yandex.cloud.*",
"jwt.*",
"kikimr.*",
"sqlalchemy.*",
"requests.*",
"ydb.public.api.*",
"contrib.ydb.public.api.*",
"opentelemetry.*",
]
ignore_missing_imports = true
# Types and Table modules - protobuf stubs don't expose enum values correctly
[[tool.mypy.overrides]]
module = ["ydb.types", "ydb.table"]
disable_error_code = ["attr-defined"]
[tool.coverage.run]
branch = true
source = ["ydb"]
# Auto-generated protobuf stubs and test files must not skew the metric.
omit = [
"ydb/_grpc/v3/*",
"ydb/_grpc/v4/*",
"ydb/_grpc/v5/*",
"ydb/_grpc/v6/*",
"*_test.py",
# Legacy, no longer actively developed.
"ydb/dbapi/*",
"ydb/sqlalchemy/*",
]
[tool.coverage.report]
show_missing = true
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.html]
directory = "cov_html"