Skip to content

Commit

Permalink
Move coverage configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Dec 28, 2024
1 parent 91be683 commit 25c9100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,12 @@ packages = ["cpymad", "cpymad.COPYING"]
package-dir = {"" = "src"}
package-data = {"cpymad.COPYING" = ["*.rst"]}
include-package-data = false

[tool.coverage]
# when running `coverage combine`, replace these paths by `src/cpymad`, see:
# https://coverage.readthedocs.io/en/latest/config.html#paths
paths.source = [
"src/cpymad/",
"*/site-packages/cpymad-*.egg/cpymad",
"*/site-packages/cpymad/",
]
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@
ignore = E126,E221,E226,E241,E272,E306,E701,E731,E741,W503,W504
exclude = .git,__pycache__,doc/conf.py,build,dist,.eggs
max-line-length = 84

[coverage:paths]
# when running `coverage combine`, replace these paths by `src/cpymad`, see:
# https://coverage.readthedocs.io/en/latest/config.html#paths
source =
src/cpymad/
*/site-packages/cpymad-*.egg/cpymad
*/site-packages/cpymad/

0 comments on commit 25c9100

Please sign in to comment.