From 2c3832a3bc2b25eb6fbeb5576bc29e15ceda121b Mon Sep 17 00:00:00 2001 From: Patrick Kubiak Date: Sat, 2 Nov 2024 12:13:55 -0400 Subject: [PATCH] Move pytest config to pyproject.toml --- pyproject.toml | 9 ++++++++- setup.cfg | 8 -------- src/__main__.py | 3 +-- 3 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 17786c2..ce0f2eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,4 +33,11 @@ cli = [ ] [project.scripts] -console-songs = "songs:main" \ No newline at end of file +console-songs = "songs:main" + +[tool.pytest.ini_options] +minversion = "6.0" +addopts = "--cov=src/ --cov-report term-missing" +testpaths = [ + "src/" +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2891403..0000000 --- a/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[tool:pytest] -addopts = --cov=. --cov-report term-missing -norecursedirs = - .git - .github - bin - lib - lib64 diff --git a/src/__main__.py b/src/__main__.py index b9d7983..c1c1311 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -1,4 +1,3 @@ -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover from songs import main - main()