Skip to content

Commit 9246446

Browse files
committed
Turn off GL09
1 parent d4ec607 commit 9246446

File tree

1 file changed

+22
-44
lines changed

1 file changed

+22
-44
lines changed

pyproject.toml

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ build-backend = "hatchling.build"
77
name = "zarr"
88
description = "An implementation of chunked, compressed, N-dimensional arrays for Python"
99
readme = { file = "README.md", content-type = "text/markdown" }
10-
authors = [
11-
{ name = "Alistair Miles", email = "[email protected]" },
12-
]
10+
authors = [{ name = "Alistair Miles", email = "[email protected]" }]
1311
maintainers = [
1412
{ name = "Davis Bennett", email = "[email protected]" },
1513
{ name = "jakirkham" },
@@ -21,7 +19,7 @@ maintainers = [
2119
{ name = "Ryan Abernathey" },
2220
{ name = "David Stansby" },
2321
{ name = "Tom Augspurger", email = "[email protected]" },
24-
{ name = "Deepak Cherian" }
22+
{ name = "Deepak Cherian" },
2523
]
2624
requires-python = ">=3.11"
2725
# If you add a new dependency here, please also add it to .pre-commit-config.yml
@@ -33,9 +31,7 @@ dependencies = [
3331
'donfig>=0.8',
3432
]
3533

36-
dynamic = [
37-
"version",
38-
]
34+
dynamic = ["version"]
3935
classifiers = [
4036
'Development Status :: 6 - Mature',
4137
'Intended Audience :: Developers',
@@ -50,17 +46,13 @@ classifiers = [
5046
'Programming Language :: Python :: 3.12',
5147
'Programming Language :: Python :: 3.13',
5248
]
53-
license = {text = "MIT License"}
49+
license = { text = "MIT License" }
5450
keywords = ["Python", "compressed", "ndimensional-arrays", "zarr"]
5551

5652
[project.optional-dependencies]
5753
# User extras
58-
remote = [
59-
"fsspec>=2023.10.0",
60-
]
61-
gpu = [
62-
"cupy-cuda12x",
63-
]
54+
remote = ["fsspec>=2023.10.0"]
55+
gpu = ["cupy-cuda12x"]
6456
# Development extras
6557
test = [
6658
"coverage",
@@ -104,24 +96,18 @@ Homepage = "https://github.com/zarr-developers/zarr-python"
10496
exclude_lines = [
10597
"pragma: no cover",
10698
"pragma: ${PY_MAJOR_VERSION} no cover",
107-
'.*\.\.\.' # Ignore "..." lines
99+
'.*\.\.\.', # Ignore "..." lines
108100
]
109101

110102
[tool.coverage.run]
111-
omit = [
112-
"src/zarr/meta_v1.py",
113-
"bench/compress_normal.py",
114-
]
103+
omit = ["src/zarr/meta_v1.py", "bench/compress_normal.py"]
115104

116105
[tool.hatch]
117106
version.source = "vcs"
118107
build.hooks.vcs.version-file = "src/zarr/_version.py"
119108

120109
[tool.hatch.envs.test]
121-
dependencies = [
122-
"numpy~={matrix:numpy}",
123-
"universal_pathlib",
124-
]
110+
dependencies = ["numpy~={matrix:numpy}", "universal_pathlib"]
125111
features = ["test"]
126112

127113
[[tool.hatch.envs.test.matrix]]
@@ -158,10 +144,7 @@ fix = "rm -r data/; pytest docs/user-guide --doctest-glob='*.rst' --accept"
158144
list-env = "pip list"
159145

160146
[tool.hatch.envs.gputest]
161-
dependencies = [
162-
"numpy~={matrix:numpy}",
163-
"universal_pathlib",
164-
]
147+
dependencies = ["numpy~={matrix:numpy}", "universal_pathlib"]
165148
features = ["test", "gpu"]
166149

167150
[[tool.hatch.envs.gputest.matrix]]
@@ -188,7 +171,7 @@ serve = "sphinx-autobuild docs docs/_build --host 0.0.0.0"
188171
python = "3.13"
189172
dependencies = [
190173
'packaging @ git+https://github.com/pypa/packaging',
191-
'numpy', # from scientific-python-nightly-wheels
174+
'numpy', # from scientific-python-nightly-wheels
192175
'numcodecs @ git+https://github.com/zarr-developers/numcodecs',
193176
'fsspec @ git+https://github.com/fsspec/filesystem_spec',
194177
's3fs @ git+https://github.com/fsspec/s3fs',
@@ -223,7 +206,7 @@ python = "3.11"
223206
dependencies = [
224207
'packaging==22.*',
225208
'numpy==1.25.*',
226-
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
209+
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
227210
'fsspec==2022.10.0',
228211
's3fs==2022.10.0',
229212
'universal_pathlib==0.0.22',
@@ -261,7 +244,7 @@ extend-exclude = [
261244
"buck-out",
262245
"build",
263246
"dist",
264-
"notebooks", # temporary, until we achieve compatibility with ruff ≥ 0.6
247+
"notebooks", # temporary, until we achieve compatibility with ruff ≥ 0.6
265248
"venv",
266249
"docs",
267250
"src/zarr/v2/",
@@ -338,14 +321,12 @@ warn_unreachable = true
338321
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
339322

340323
[[tool.mypy.overrides]]
341-
module = [
342-
"zarr.v2.*",
343-
]
324+
module = ["zarr.v2.*"]
344325
ignore_errors = true
345326

346327
[[tool.mypy.overrides]]
347328
module = [
348-
"zarr.testing.stateful", # lots of hypothesis decorator errors
329+
"zarr.testing.stateful", # lots of hypothesis decorator errors
349330
"tests.package_with_entrypoint.*",
350331
"tests.test_codecs.test_codecs",
351332
"tests.test_codecs.test_transpose",
@@ -371,33 +352,30 @@ doctest_optionflags = [
371352
"ELLIPSIS",
372353
"IGNORE_EXCEPTION_DETAIL",
373354
]
374-
addopts = [
375-
"--durations=10", "-ra", "--strict-config", "--strict-markers",
376-
]
355+
addopts = ["--durations=10", "-ra", "--strict-config", "--strict-markers"]
377356
filterwarnings = [
378357
"error:::zarr.*",
379358
"ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning",
380359
"ignore:The loop argument is deprecated since Python 3.8.*:DeprecationWarning",
381360
"ignore:Creating a zarr.buffer.gpu.*:UserWarning",
382-
"ignore:Duplicate name:UserWarning", # from ZipFile
361+
"ignore:Duplicate name:UserWarning", # from ZipFile
383362
"ignore:.*is currently not part in the Zarr version 3 specification.*:UserWarning",
384363
]
385-
markers = [
386-
"gpu: mark a test as requiring CuPy and GPU"
387-
]
364+
markers = ["gpu: mark a test as requiring CuPy and GPU"]
388365

389366
[tool.repo-review]
390367
ignore = [
391-
"PC111", # fix Python code in documentation - enable later
392-
"PC180", # for JavaScript - not interested
368+
"PC111", # fix Python code in documentation - enable later
369+
"PC180", # for JavaScript - not interested
393370
]
394371

395372
[tool.numpydoc_validation]
396373
# See https://numpydoc.readthedocs.io/en/latest/validation.html#built-in-validation-checks for list of checks
397374
checks = [
398375
"GL06",
399376
"GL07",
400-
"GL09",
377+
# Currently broken; see https://github.com/numpy/numpydoc/issues/573
378+
# "GL09",
401379
"GL10",
402380
"SS02",
403381
"SS04",

0 commit comments

Comments
 (0)