Skip to content

Commit

Permalink
Use right parameters for coverage.run tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousik committed Dec 10, 2023
1 parent 2fb0603 commit bf77921
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,26 @@ curl = ">=8.4.0"
[tool.coverage.run]
# See note above on need to specify separate sources for pytest-coverage and coverage.
source = ["src/pudl/", "test/integration/", "test/unit/"]
include = [
"src/pudl/**",
"test/integration/**",
"test/unit/**",
"*/site-packages/pudl/**",
]
omit = [
# Never hit by integration tests:
"src/pudl/validate.py",
]
concurrency = ["multiprocessing"]

[tool.coverage.paths]
# When running pudl tools installed with pip, the sources are imported
# from package-data/pudl directory. The following maps this to raw
# source files.
pudl_sources = [
"src/pudl",
"*/site-packages/pudl/",
]

[tool.coverage.report]
precision = 1
Expand Down

0 comments on commit bf77921

Please sign in to comment.