Skip to content

Commit d333c78

Browse files
committed
Migrate coverage configurations to pyproject.toml
1 parent d313015 commit d333c78

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

.coveragerc

-5
This file was deleted.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build, package, test, and clean
22
PROJECT=pygmt
33
TESTDIR=tmp-test-dir-with-unique-name
4-
PYTEST_ARGS=--cov=$(PROJECT) --cov-config=../.coveragerc \
4+
PYTEST_ARGS=--cov=$(PROJECT) --cov-config=../pyproject.toml \
55
--cov-report=term-missing --cov-report=xml --cov-report=html \
66
--doctest-modules -v --mpl --mpl-results-path=results \
77
--pyargs ${PYTEST_EXTRA}

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
- pytest
1818
- pytest-cov
1919
- pytest-mpl
20-
- coverage
20+
- coverage[toml]
2121
- black
2222
- blackdoc
2323
- pylint

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.coverage.run]
2+
omit = ["*/tests/*", "*/_version.py", "*pygmt/__init__.py"]

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupyter
55
pytest
66
pytest-cov
77
pytest-mpl
8-
coverage
8+
coverage[toml]
99
black
1010
blackdoc
1111
pylint

0 commit comments

Comments
 (0)