forked from psycopg/psycopg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (65 loc) · 1.46 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (65 loc) · 1.46 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
[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
exclude = '''(?x)(
^ docs/lib/.*\.py
| tests/test_tstring\.py
)'''
[[tool.mypy.overrides]]
module = [
"numpy.*",
"polib",
"shapely.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"tests.*",
"scrap.*",
]
check_untyped_defs = true
disallow_untyped_defs = false
disallow_untyped_calls = false
[tool.codespell]
ignore-words-list = "alot,ans,ba,fo,te,erro,varning,perfor"
skip = "build,_build,.tox,.mypy_cache,.venv,pq.c,_psycopg.c,*.html"
[tool.isort]
profile = "black"
length_sort = true
multi_line_output = 9
sort_order = "psycopg" # requires the isort-psycopg module
[tool.black]
force_exclude = "tests/test_tstring.py"