Skip to content

Commit

Permalink
🔧 config(coverage): add workaround for source path issue
Browse files Browse the repository at this point in the history
for the issue see [1]
for the workaround see [2]

[1]: nedbat/coveragepy#578
[2]: https://github.com/LibraryOfCongress/concordia/pull/857/files
  • Loading branch information
ljnsn committed Oct 12, 2024
1 parent cbf0d0e commit 4478c89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ warn_unreachable = true
branch = true
command_line = "--module pytest"
data_file = "reports/.coverage"
source = ["src"]
# include = ["src/*"]
# omit = ["tests/*"]
include = ["src/*"]
omit = ["tests/*"]

[tool.coverage.paths]
source = ["src/"]
Expand All @@ -71,8 +70,8 @@ fail_under = 50
precision = 1
show_missing = true
skip_covered = true
# include = ["src/*"]
# omit = ["tests/*"]
include = ["src/*"]
omit = ["tests/*"]

[tool.coverage.xml]
output = "reports/coverage.xml"
Expand Down

0 comments on commit 4478c89

Please sign in to comment.