-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (112 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
120 lines (112 loc) · 3.2 KB
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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "zarrs"
description = "A CodecPipeline for zarr-python backed by the zarrs Rust crate"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Ilan Gold" },
{ name = "Lachlan Deakin" },
{ name = "Philipp Angerer" },
]
license = "MIT"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"numpy>=1.24",
"zarr>=3.1",
]
[dependency-groups]
test = [
"aiohttp",
"fsspec>2024",
"numcodecs>=0.16.1",
"obstore>=0.8.2",
"pytest",
"pytest-asyncio",
"pytest-xdist",
"pytest-mock",
]
doc = ["sphinx>=7.4.6", "myst-parser"]
dev = [
"maturin",
"pip",
"pre-commit",
{include-group = "test"},
{include-group = "doc"},
]
[project.entry-points."zarr.codec_pipeline"]
"zarrs.codec_pipeline" = "zarrs:ZarrsCodecPipeline"
[tool.maturin]
python-source = "python"
module-name = "zarrs._internal"
features = ["pyo3/extension-module"]
[tool.pytest.ini_options]
minversion = "7"
testpaths = ["tests"]
log_cli_level = "INFO"
xfail_strict = true
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
]
addopts = [
"--durations=10",
"-ra",
"--strict-config",
"--strict-markers",
"--import-mode=importlib",
]
filterwarnings = [
"error:::zarr.*",
"ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning",
"ignore:The loop argument is deprecated since Python 3.8.*:DeprecationWarning",
"ignore:Creating a zarr.buffer.gpu.*:UserWarning",
"ignore:Duplicate name:UserWarning", # from ZipFile
"ignore:.*not part in the Zarr format 3.*:UserWarning",
]
markers = ["gpu: mark a test as requiring CuPy and GPU"]
[tool.ruff]
src = ["src", "tests"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"E", # Error detected by Pycodestyle
"F", # Errors detected by Pyflakes
"W", # Warning detected by Pycodestyle
"UP", # pyupgrade
"I", # isort
"TC", # manage type checking blocks
"TID251", # Banned imports
"ICN", # Follow import conventions
"PTH", # Pathlib instead of os.path
"PLR0917", # Ban APIs with too many positional parameters
"FBT", # No positional boolean parameters
"PT", # Pytest style
"SIM", # Simplify control flow
]
ignore = [
# line too long -> we accept long comment lines; black gets rid of long code lines
"E501",
# module level import not at top of file -> required to circumvent circular imports for Scanpys API
"E402",
# E266 too many leading '#' for block comment -> Scanpy allows them for comments into sections
"E262",
# allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation
"E741",
]
[tool.ruff.lint.per-file-ignores]
"**/*.pyi" = ["ICN001"]
[tool.ruff.lint.isort]
known-first-party = ["zarrs"]