Skip to content

Add pytest-cov to dev dependency group#846

Merged
d-v-b merged 1 commit into
zarr-developers:mainfrom
d-v-b:fix-addopts-pytest
Jun 19, 2026
Merged

Add pytest-cov to dev dependency group#846
d-v-b merged 1 commit into
zarr-developers:mainfrom
d-v-b:fix-addopts-pytest

Conversation

@d-v-b

@d-v-b d-v-b commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

The shared pytest addopts in pyproject.toml include --cov=numcodecs --cov-report xml, so every dependency group that runs pytest needs pytest-cov.

After #844 deduped the test-zarr-* groups to include the dev group, pytest-cov was no longer pulled in (the dev group only had plain pytest). This broke external runners that install those groups — notably zarr-python's "numcodecs zarr3 codec tests" job, which fails with:

__main__.py: error: unrecognized arguments: --cov=numcodecs --cov-report
  inifile: .../numcodecs/pyproject.toml

(See zarr-developers/zarr-python#3885 checks.)

Fix

Add pytest-cov to the dev dependency group. Since every test group includes dev, all internal and external runners now get coverage support.

🤖 Generated with Claude Code

The shared pytest addopts include --cov=numcodecs, so every dependency
group that runs pytest needs pytest-cov. After the test-zarr-* groups
were deduped to include the dev group, pytest-cov was no longer pulled
in, breaking external runners (e.g. zarr-python's numcodecs codec tests
job) with "unrecognized arguments: --cov=numcodecs".

Put pytest-cov in dev so all groups that include it get coverage support.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@d-v-b d-v-b enabled auto-merge (squash) June 19, 2026 08:21
@d-v-b d-v-b merged commit e813354 into zarr-developers:main Jun 19, 2026
38 checks passed
@d-v-b d-v-b deleted the fix-addopts-pytest branch June 19, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant