From ec4ba5a36de6c2c9b2e8f246dc37735923954ad0 Mon Sep 17 00:00:00 2001 From: Andres Vargas Date: Thu, 12 Oct 2023 11:07:07 -0400 Subject: [PATCH] Add pytest-cov as a dev dependency --- .coveragerc | 2 ++ .gitignore | 2 ++ pytest.ini | 4 ++++ setup.cfg | 1 + 4 files changed, 9 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..199c083 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = zx diff --git a/.gitignore b/.gitignore index fe6ac8a..2c633bc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ build dist venv +.venv +.coverage diff --git a/pytest.ini b/pytest.ini index 75d12c7..09944f9 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,7 @@ [pytest] +addopts = -s --cov -p no:warnings testpaths = tests + +filterwarnings = + ignore::CoverageWarning diff --git a/setup.cfg b/setup.cfg index b47bc48..a998db6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,5 +32,6 @@ console_scripts = [options.extras_require] dev = pytest + pytest-cov tox mypy