Skip to content

Commit 4501116

Browse files
committed
Update coverage.py config
1 parent 288a7a7 commit 4501116

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

.coveragerc

Lines changed: 0 additions & 11 deletions
This file was deleted.

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ filterwarnings = [
108108
]
109109
testpaths = [ "tests" ]
110110

111+
[tool.coverage.report]
112+
# Regexes for lines to exclude from consideration
113+
exclude_also = [
114+
# Don't complain if non-runnable code isn't run:
115+
"if __name__ == .__main__.:",
116+
]
117+
111118
[tool.mypy]
112119
pretty = true
113120
strict = true

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ extras =
1212
tests
1313
pass_env =
1414
FORCE_COLOR
15-
set_env =
16-
COVERAGE_CORE = sysmon
1715
commands =
1816
{envpython} -m pytest \
1917
--cov humanize \

0 commit comments

Comments
 (0)