-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
101 lines (93 loc) · 1.72 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
100
101
[build-system]
requires = [
"setuptools >= 42",
"wheel",
"setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "pado/_version.py"
version_scheme = "post-release"
[tool.pytest.ini_options]
addopts = [
"-v",
# (only needed by windows) disable faulthandler plugin to suppress non-fatal error msgs
"-p", "no:faulthandler",
]
norecursedirs = "scripts"
filterwarnings = [
"ignore:invalid Aperio image description",
]
[tool.coverage.run]
source = ["pado"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if MYPY:",
"from typing_extensions import",
"[.][.][.]$",
]
[tool.black]
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.mypy_cache
| \.venv
| venv.*
| build
| dist
| ci
)/
)
'''
[tool.isort]
profile = "black"
py_version = "37"
force_single_line = true
add_imports = ["from __future__ import annotations"]
extend_skip = ["setup.py", "docs/source/conf.py"]
[tool.mypy]
python_version = 3.8
plugins = ["pydantic.mypy"]
exclude = [
"^venv",
"^build",
"^docs",
"^.*/tests",
"^_stash",
"^pado/_version.py",
"^setup.py",
]
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = false
warn_unused_configs = true
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"cv2.*",
"dynaconf.*",
"jpype.*",
"pandera.*",
"orjson.*",
"fsspec.*",
"pandas.*",
"pyarrow.*",
"shapely.*",
"tifffile.*",
"toml.*",
"tqdm.*",
"zarr.*",
"PIL.*",
]
ignore_missing_imports = true