Skip to content

Commit 9434acf

Browse files
authored
Consolidate .coveragerc into pyproject.toml (zarr-developers#1250)
1 parent bbc66df commit 9434acf

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.coveragerc

-9
This file was deleted.

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
conda activate zarr-env
7575
mkdir ~/blob_emulator
7676
azurite -l ~/blob_emulator --debug debug.log 2>&1 > stdouterr.log &
77-
pytest --cov=zarr --cov-config=.coveragerc --doctest-plus --cov-report xml --cov=./ --timeout=300
77+
pytest --cov=zarr --cov-config=pyproject.toml --doctest-plus --cov-report xml --cov=./ --timeout=300
7878
- uses: codecov/codecov-action@v3
7979
with:
8080
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

docs/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Zarr maintains 100% test coverage under the latest Python stable release (curren
214214
Python 3.8). Both unit tests and docstring doctests are included when computing
215215
coverage. Running::
216216
217-
$ python -m pytest -v --cov=zarr --cov-config=.coveragerc zarr
217+
$ python -m pytest -v --cov=zarr --cov-config=pyproject.toml zarr
218218
219219
will automatically run the test suite with coverage and produce a coverage report.
220220
This should be 100% before code can be accepted into the main code base.

docs/release.rst

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Maintenance
2626
* Migrate to ``pyproject.toml`` and remove redundant infrastructure.
2727
By :user:`Saransh Chopra <Saransh-cpp>` :issue:`1158`.
2828

29+
* Migrate coverage to ``pyproject.toml``.
30+
By :user:`John Kirkham <jakirkham>` :issue:`1250`.
31+
2932
.. _release_2.13.3:
3033

3134
2.13.3

pyproject.toml

+11
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ Discussions = "https://github.com/zarr-developers/zarr-python/discussions"
5050
Documentation = "https://zarr.readthedocs.io/"
5151
Homepage = "https://github.com/zarr-developers/zarr-python"
5252

53+
[tool.coverage.report]
54+
exclude_lines = [
55+
"pragma: no cover",
56+
"pragma: ${PY_MAJOR_VERSION} no cover",
57+
]
58+
59+
[tool.coverage.run]
60+
omit = [
61+
"zarr/meta_v1.py",
62+
"bench/compress_normal.py",
63+
]
5364

5465
[tool.setuptools]
5566
packages = ["zarr", "zarr._storage", "zarr.tests"]

0 commit comments

Comments
 (0)