From d16fe67966d07ac99c25509698f1fd26817d3b8e Mon Sep 17 00:00:00 2001 From: Brian Okken <1568356+okken@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:27:00 -0800 Subject: [PATCH] updates from course --- pyproject.toml | 10 ---------- tox.ini | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8529366..b2b8127 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,13 +30,3 @@ Home = "https://github.com/okken/cards" [project.scripts] cards = "cards:app" -[tool.coverage.run] -branch = true -show_missing = true - -[tool.coverage.paths] -source = [ "src", "*/site-packages", ] - -[tool.coverage.report] -exclude_also = [ "if __name__ == .__main__.:", ] -ignore_errors = true diff --git a/tox.ini b/tox.ini index a3ffc0b..d2b7d9b 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ deps = pytest pytest-cov commands = + coverage debug config pytest --cov=cards --cov=tests --cov-branch --cov-fail-under=100 {posargs} package = wheel wheel_build_env = .pkg @@ -19,3 +20,17 @@ addopts = -ra testpaths = tests pythonpath = tests/cli + +[coverage:run] +branch = True + +[coverage:paths] +source = + src + */site-packages" + +[coverage:report] +exclude_also = + if __name__ == .__main__.: + +ignore_errors = True