summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Morris <kevr@0cost.org>2020-12-26 06:10:02 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:51:59 +0100
commit6f395d06091d98e1fe38b8cf1e343aa81775007f (patch)
tree430bc9a73bae02f5035cbff9bc0b684ad12f14af
parent8ce96ac20830ce222fb7f75ef8ab1ad2669539b0 (diff)
downloadaur-6f395d06091d98e1fe38b8cf1e343aa81775007f.tar.gz
aur-6f395d06091d98e1fe38b8cf1e343aa81775007f.tar.xz
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>
-rw-r--r--.coveragerc7
-rw-r--r--.gitignore8
2 files changed, 15 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 00000000..144a9f5c
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,7 @@
+[run]
+disable_warnings = already-imported
+
+[report]
+include = aurweb/*
+exclude_lines =
+ if __name__ == .__main__.:
diff --git a/.gitignore b/.gitignore
index 4d961d13..372fa105 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,11 @@ __pycache__/
test/test-results/
test/trash directory*
schema/aur-schema-sqlite.sql
+data.sql
+aurweb.sqlite3
+conf/config
+htmlcov/
+fastapi_aw/
+.vim/
+.pylintrc
+.coverage