Skip to content

Commit

Permalink
updates from course
Browse files Browse the repository at this point in the history
  • Loading branch information
okken committed Nov 10, 2023
1 parent 27e7e43 commit d16fe67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d16fe67

Please sign in to comment.