Skip to content

Commit

Permalink
move coverage config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Mar 21, 2024
1 parent 03e9b1d commit 7f475b4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .coveragerc

This file was deleted.

25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,28 @@ __version__ = "{version}"

[tool.pytest.ini_options]
minversion = "6.0"

[tool.coverage]
[tool.coverage.run]
branch = true
source = ["atom"]

[tool.coverage.report]
# Regexes for lines to exclude from consideration
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",
"pass",

# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",

# Don't complain about type checking
"if TYPE_CHECKING:",

# Don't complain about ellipsis in overload
"\\.\\.\\.",
]

0 comments on commit 7f475b4

Please sign in to comment.