Skip to content

Commit

Permalink
Move pytest config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
patkub committed Nov 2, 2024
1 parent 4cfcf1a commit 2c3832a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,11 @@ cli = [
]

[project.scripts]
console-songs = "songs:main"
console-songs = "songs:main"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=src/ --cov-report term-missing"
testpaths = [
"src/"
]
8 changes: 0 additions & 8 deletions setup.cfg

This file was deleted.

3 changes: 1 addition & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
from songs import main

main()

0 comments on commit 2c3832a

Please sign in to comment.