blob: 14f3c9e0d4f4ed6ede6b50611d0a81f4b5bb2783 (
plain)
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
|
[build-system]
requires = ["setuptools>=49.2.0", "wheel>=0.37"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = [
"error",
]
testpaths=[
"tests",
]
# Note: On Travis they these options seem to leak objects
# log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"
# log_level = "DEBUG"
[tool.coverage.run]
source = [
"psycopg/psycopg",
"psycopg_pool/psycopg_pool",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
'\.\.\.$',
]
[tool.mypy]
files = [
"psycopg/psycopg",
"psycopg_pool/psycopg_pool",
"psycopg_c/psycopg_c",
"tests",
]
warn_unused_ignores = true
show_error_codes = true
disable_bytearray_promotion = true
disable_memoryview_promotion = true
strict = true
[[tool.mypy.overrides]]
module = [
"shapely.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "uvloop"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
check_untyped_defs = true
disallow_untyped_defs = false
disallow_untyped_calls = false
|