From 8c424c7e498dde38eabb0d4c59d666de3af26432 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 Sep 2024 00:57:22 -0400 Subject: [PATCH] Add `coverage` dev dependency, with basic config --- pdm.lock | 14 +++++++++++++- pyproject.toml | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/pdm.lock b/pdm.lock index 1b2195f..674a814 100644 --- a/pdm.lock +++ b/pdm.lock @@ -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" diff --git a/pyproject.toml b/pyproject.toml index 9c10871..1c6c5cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]