Skip to content

Commit

Permalink
Exclude __name__ == __main__ sections from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pydsigner committed Dec 21, 2023
1 parent b3b1fc6 commit b1f421b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ addopts = [
[tool.coverage.report]
exclude_also = [
"if \\S*TYPE_CHECKING:",
"if __name__ == '__main__':",
]

[tool.pylint.main]
Expand Down

0 comments on commit b1f421b

Please sign in to comment.