forked from xpublish-community/xpublish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
131 lines (120 loc) · 3 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
[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",
]
[project.urls]
"documentation" = "https://xpublish.readthedocs.io/"
"repository" = "https://github.com/xpublish-community/xpublish"
[project.entry-points."xpublish.plugin"]
dataset_info = "xpublish.plugins.included.dataset_info:DatasetInfoPlugin"
module_version = "xpublish.plugins.included.module_version:ModuleVersionPlugin"
plugin_info = "xpublish.plugins.included.plugin_info:PluginInfoPlugin"
zarr = "xpublish.plugins.included.zarr:ZarrPlugin"
[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]
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
# "E203",
# "E266",
"E501",
# "W503",
"E722",
"E402",
"C901",
]
line-length = 100
exclude = [
"tests/",
"docs/",
]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 18
[tool.ruff.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.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"