-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
125 lines (109 loc) · 2.96 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
114
115
116
117
118
119
120
121
122
123
124
125
[project]
name = "ome-zarr-models"
dynamic = ["version"]
description = "A minimal Python package for reading OME-Zarr (meta)data "
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["zarr<3", "pydantic", "pydantic-zarr"]
maintainers = [
{name = "David Stansby"}
]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python"
]
[project.urls]
Documentation = "https://ome-zarr-models-py.readthedocs.io"
Repository = "https://github.com/ome-zarr-models/ome-zarr-models-py"
"Bug Tracker" = "https://github.com/ome-zarr-models/ome-zarr-models-py/issues"
# Changelog = ""
[project.optional-dependencies]
docs = [
"mkdocs>=1.6.1",
"mkdocstrings-python>=1.12.2",
"mkdocs-material",
"mkdocs-jupyter",
"matplotlib",
"rich",
"griffe-pydantic",
"fsspec[http]",
]
[tool.hatch.version]
source = "vcs"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
docs = [
"ome-zarr-models[docs]",
]
dev = [
"mypy",
"ruff>=0.8",
"pre-commit",
]
test = ["pytest>=8.3.3", "pytest-cov"]
[tool.uv]
default-groups = ["docs", "dev", "test"]
# Ruff configuration for linting and formatting
# https://docs.astral.sh/ruff
[tool.ruff]
line-length = 88
[tool.ruff.lint]
pydocstyle = { convention = "numpy" }
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
]
ignore = [
"D401", # First line should be in imperative mood (remove to opt in)
"D200", # One line docstring should fit on one line.
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"TC001", # Move application import `...` into a type-checking block. This messes with nested pydantic models
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D", "S"]
# https://docs.astral.sh/ruff/formatter/
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = false # default is false
[tool.mypy]
strict = true
warn_unreachable = true
plugins = ['pydantic.mypy']
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[[tool.mypy.overrides]]
module = ["zarr.*", "pydantic_zarr.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8"
testpaths = ["tests"]
log_cli_level = "INFO"
xfail_strict = true
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--cov",
"--cov-report=xml",
"-vv",
]
filterwarnings = ["error"]
[tool.typos.default.extend-words]
ome = "ome"