Skip to content

Commit 467ee22

Browse files
committed
Fix test failures after moving config to pyproject.toml
- Remove --cov-config setup.cfg reference in tox.ini since setup.cfg was deleted - Fix coverage report configuration by replacing 'include' with 'omit' to exclude tests - Coverage now reads configuration from pyproject.toml automatically
1 parent 76999e7 commit 467ee22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ source = [
7878

7979
[tool.coverage.report]
8080
show_missing = true
81-
include = ["*/site-packages/dotenv/*"]
81+
omit = ["*/tests/*"]
8282
exclude_lines = [
8383
"if IS_TYPE_CHECKING:",
8484
"pragma: no cover",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ deps =
1818
sh >= 2.0.2, <3
1919
click
2020
py{39,310,311,312,313,3.14,pypy3}: ipython
21-
commands = pytest --cov --cov-report=term-missing --cov-config setup.cfg {posargs}
21+
commands = pytest --cov --cov-report=term-missing {posargs}
2222
depends =
2323
py{39,310,311,312,313,314},pypy3: coverage-clean
2424
coverage-report: py{39,310,311,312,313,314},pypy3

0 commit comments

Comments
 (0)