-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
113 lines (95 loc) · 2.67 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
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pydantic-ome-ngff"
dynamic = ["version"]
description = "Pydantic models for the OME-NGFF file format."
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["ngff", "pydantic", "ome-ngff", "zarr"]
authors = [
{ name = "Davis Vann Benntt", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"pydantic-zarr == 0.7.0"
]
[project.urls]
Documentation = "https://janeliascicomp.github.io/pydantic-ome-ngff"
Issues = "https://github.com/janeliascicomp/pydantic-ome-ngff/issues"
Source = "https://github.com/janeliascicomp/pydantic-ome-ngff"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/pydantic_ome_ngff/_version.py"
[tool.hatch.envs.default]
installer = "uv"
[tool.hatch.envs.test]
dependencies = [
"pytest==8.0.0",
"pytest-examples==0.0.9",
"fsspec[http]==2024.2.0",
"requests==2.32.3",
"pytest-cov==5.0.0",
"jsonschema==4.17.3"
]
[tool.hatch.envs.test.scripts]
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
run = "run-coverage --no-cov"
run-verbose = "run-coverage --verbose"
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/pydantic_ome_ngff tests}"
[tool.hatch.envs.docs]
dependencies = [
"mkdocs-material==9.5.33",
"mkdocstrings[python]==0.25.2"
]
[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve --watch=src"
[tool.coverage.run]
source_pkgs = ["pydantic_ome_ngff", "tests"]
branch = true
parallel = true
omit = [
"src/pydantic_ome_ngff/_version.py",
]
[tool.coverage.paths]
pydantic_ome_ngff = ["src/pydantic_ome_ngff", "*/pydantic-ome-ngff/src/pydantic_ome_ngff"]
tests = ["tests", "*/pydantic-ome-ngff/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.mypy]
plugins = [
"pydantic.mypy"
]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true