add .coveragerc, update .gitignore

Now, .coveragerc enforces a minimum overall 82% coverage, as is
the current standing. Providing less than 100% coverage for added
code should reduce the overall coverage and eventually reach 81%
or below, causing coverage report to fail on execution.

Developers should increase the failure minimum as they increase
coverage across the uncovered code.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2020-12-25 21:10:02 -08:00
parent bac38edd48
commit 4230772e3b
2 changed files with 15 additions and 0 deletions

7
.coveragerc Normal file
View file

@ -0,0 +1,7 @@
[run]
disable_warnings = already-imported
[report]
include = aurweb/*
exclude_lines =
if __name__ == .__main__.:

8
.gitignore vendored
View file

@ -9,3 +9,11 @@ __pycache__/
test/test-results/ test/test-results/
test/trash directory* test/trash directory*
schema/aur-schema-sqlite.sql schema/aur-schema-sqlite.sql
data.sql
aurweb.sqlite3
conf/config
htmlcov/
fastapi_aw/
.vim/
.pylintrc
.coverage