Skip to content

Commit

Permalink
Migrate coveragepy config into pyproject.toml (#11025)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
skirpichev and AA-Turner authored Dec 29, 2022
1 parent 3ec54f1 commit 45a0ea9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,19 @@ markers = [
"setup_command",
]
testpaths = ["tests"]

[tool.coverage.run]
branch = true
parallel = true
source = ['sphinx']

[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain if tests don't hit defensive assertion code:
'raise NotImplementedError',
# Don't complain if non-runnable code isn't run:
'if __name__ == .__main__.:',
]
ignore_errors = true
15 changes: 0 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,3 @@ application-import-names = sphinx
import-order-style = smarkets
per-file-ignores =
tests/*: E501

[coverage:run]
branch = True
parallel = True
source = sphinx

[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
ignore_errors = True

0 comments on commit 45a0ea9

Please sign in to comment.