forked from xpublish-community/xpublish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
157 lines (143 loc) · 3.5 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"setuptools-scm[toml]>=6.2",
]
[project]
name = "xpublish"
description = "Publish Xarray Datasets via a REST API."
readme = "README.md"
keywords = [
"api",
"xarray",
"zarr",
]
license = { file = "LICENSE" }
maintainers = [
{ name = "Joe Hamman", email = "[email protected]" },
{ name = "Alex Kerney", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dynamic = [
"dependencies",
"version",
]
urls."documentation" = "https://xpublish.readthedocs.io/"
urls."repository" = "https://github.com/xpublish-community/xpublish"
entry-points."xpublish.plugin".dataset_info = "xpublish.plugins.included.dataset_info:DatasetInfoPlugin"
entry-points."xpublish.plugin".module_version = "xpublish.plugins.included.module_version:ModuleVersionPlugin"
entry-points."xpublish.plugin".plugin_info = "xpublish.plugins.included.plugin_info:PluginInfoPlugin"
entry-points."xpublish.plugin".zarr = "xpublish.plugins.included.zarr:ZarrPlugin"
[tool.setuptools]
packages = [
"xpublish",
]
[tool.setuptools.dynamic]
dependencies = { file = [
"requirements.txt",
] }
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "dirty-tag"
[tool.black]
line-length = 100
skip-string-normalization = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C",
'D', # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"W", # pycodestyle
# "T4",
"B9",
]
ignore = [
"D100", # Missing docstring in public module
"D107", # Missing docstring in `__init__`
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
# "E203",
# "E266",
"E501",
# "W503",
"E722",
"E402",
"C901",
]
exclude = [
"tests/",
"docs/",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D103", # Missing docstring in public function
"D205", # blank line between summary and description
"D415", # first line should end with punctuation
]
"docs/*" = [
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 18
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
"xpublish",
]
known-third-party = [
"cachey",
"dask",
"fastapi",
"numcodecs",
"numpy",
"pandas",
"pkg_resources",
"pluggy",
"pydantic",
"pytest",
"setuptools",
"sphinx_autosummary_accessors",
"starlette",
"uvicorn",
"xarray",
"zarr",
]
[tool.ruff.lint.pydocstyle]
# Use Google style docstrings
convention = "google"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
docstring-quotes = "double"
[tool.ruff.lint.flake8-bugbear]
# Allow fastapi.Depends and other dependency injection style function arguments
extend-immutable-calls = [
"fastapi.Depends",
"fastapi.Query",
"fastapi.Path",
]
[tool.pytest.ini_options]
log_cli = true
log_level = "INFO"
addopts = "--cov=./ --cov-report=xml --verbose"