Skip to content

Commit

Permalink
Migrate coverage config into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Jan 13, 2025
1 parent 9822c77 commit 98a5a20
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .coveragerc

This file was deleted.

28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,34 @@ profile = "black"
addopts = "-n auto --maxprocesses 8 --timeout 3 --color=yes"
filterwarnings = ["error"]

[tool.coverage.run]
parallel = true
source = ["globus_cli"]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 87
exclude_lines =[
# the pragma to disable coverage
"pragma: no cover",
# don't complain if tests don't hit unimplemented methods/modes
"raise NotImplementedError",
"assert_never()",
# don't check on executable components of importable modules
"if __name__ == .__main__.:",
# don't check coverage on type checking conditionals
"if t.TYPE_CHECKING:",
# skip overloads
"@t.overload",
# skip abstract methods
"@abc.abstractmethod",
]

[tool.scriv]
version = "literal: src/globus_cli/version.py: __version__"
categories = "Bugfixes, Enhancements, Other"
Expand Down

0 comments on commit 98a5a20

Please sign in to comment.