aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2022-05-30 14:53:40 -0700
committerGravatar MarkKoz <[email protected]>2022-05-30 14:53:40 -0700
commit0f7c541ba8896c314ef1932ff376ffdc7989eb00 (patch)
treee486d72e1657843ec68d2aad48d0902bfe4e248a /pyproject.toml
parentTweak Makefile format (diff)
Move coverage config into pyproject.toml
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index da921bb..09b69ac 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -42,3 +42,19 @@ snekbox = "snekbox.__main__:main"
[tool.setuptools]
packages = ["snekbox"]
+
+[tool.coverage.report]
+exclude_lines = [
+ "pragma: no cover",
+ "if DEBUG"
+]
+
+[tool.coverage.run]
+branch = true
+data_file = "${COVERAGE_DATAFILE-.coverage}"
+include = ["snekbox/*"]
+omit = [
+ "snekbox/api/app.py",
+ "snekbox/config_pb2.py"
+]
+relative_files = true