Add coverage dev dependency, with basic config

This commit is contained in:
Adam Goldsmith 2024-09-05 00:57:22 -04:00
parent 1348bd8fdf
commit 8c424c7e49
2 changed files with 28 additions and 1 deletions

14
pdm.lock generated
View File

@ -5,7 +5,7 @@
groups = ["default", "debug", "dev", "lint", "server", "typing"]
strategy = ["inherit_metadata"]
lock_version = "4.5.0"
content_hash = "sha256:2352a5fdfb84e6efba254f0874182ba0b5ff2522a6d6384d3610c2c18671008f"
content_hash = "sha256:dbe70451d086ebf518de5d1f9a63890bb21dc3faf31d268a73e173bd84d77112"
[[metadata.targets]]
requires_python = "==3.11.*"
@ -267,6 +267,18 @@ files = [
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
]
[[package]]
name = "coverage"
version = "7.6.1"
requires_python = ">=3.8"
summary = "Code coverage measurement for Python"
groups = ["dev"]
marker = "python_version == \"3.11\""
files = [
{file = "coverage-7.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0420b573964c760df9e9e86d1a9a622d0d27f417e1a949a8a66dd7bcee7bc6"},
{file = "coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d"},
]
[[package]]
name = "cssbeautifier"
version = "1.15.1"

View File

@ -132,6 +132,20 @@ plugins = [
django_settings_module = "cmsmanage.settings"
strict_settings = false
[tool.coverage.run]
source = [
"cmsmanage",
"dashboard",
"doorcontrol",
"membershipworks",
"paperwork",
"rentals",
"reservations",
]
omit = [
"*/migrations/*",
]
[[tool.pdm.source]]
url = "https://pypi.org/simple"
verify_ssl = true
@ -171,6 +185,7 @@ dev = [
"ipython~=8.27",
"hypothesis[django]~=6.111",
"tblib~=3.0",
"coverage~=7.6",
]
[tool.pdm.scripts]