forked from psycopg/psycopg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
60 lines (53 loc) · 1.23 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
[build-system]
requires = ["setuptools>=49.2.0", "wheel>=0.37"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
addopts = "-ra"
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.*",
"numpy.*",
]
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
[tool.codespell]
ignore-words-list = "alot,ans,ba,fo,te,erro,varning"
skip = "build,_build,.tox,.mypy_cache,.venv,pq.c,_psycopg.c,*.html"