Skip to content

Commit 047df46

Browse files
Chore: enable coverage reports (#448)
Signed-off-by: Matthew Watkins <matt@modeseven.org>
1 parent d0140a2 commit 047df46

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,26 +129,25 @@ all = {composite = ["pytest", "lint"]}
129129

130130
[tool.pytest.ini_options]
131131
testpaths = "tests"
132-
addopts = "-v"
133132
log_cli = true
134133
log_cli_level = "INFO"
135134
log_cli_format = "%(asctime)s [%(levelname)s] %(message)s (%(filename)s:%(lineno)s)"
136135
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
137-
#addopts = "--cov --cov-report html --cov-report term-missing --cov-fail-under 95"
136+
addopts = ["--cov", "-v", "--cov-report=html"]
138137

139138
[tool.mypy]
140139
warn_unreachable = true
141140
ignore_missing_imports = true
142141

143142
[tool.coverage.run]
144-
source = "src"
145-
omit = "tests/*"
143+
source = ["src"]
144+
omit = ["tests/*"]
146145
# relative_files = true
147146

148147
[tool.coverage.report]
149148
# Note: Set low for this repository
150149
# Recommend setting a value > 90%
151-
fail_under = 25
150+
fail_under = 75
152151
skip_empty = true
153152
ignore_errors = true
154153
show_missing = true

0 commit comments

Comments
 (0)