Move coverage configuration to pyproject.toml
All checks were successful
ci/woodpecker/push/tests Pipeline was successful

This commit is contained in:
sonny 2025-05-03 14:12:57 +02:00
parent 34b552176a
commit 7fb62ce201
2 changed files with 32 additions and 33 deletions

View file

@ -1,9 +0,0 @@
[run]
source = ./transip_client/
omit =
**/tests/**
**/tests.py
**/__init__.py
[html]
directory = coverage

View file

@ -1,34 +1,34 @@
[project] [project]
name = 'transip_client' name = "transip_client"
version = '0.5.0' version = "0.5.0"
description = 'Listens for changes about the current public IP and acts upon it.' description = "Listens for changes about the current public IP and acts upon it."
authors = [{name = 'Sonny', email= 'sonnyba871@gmail.com'}] authors = [{name = "Sonny", email= "sonnyba871@gmail.com"}]
license = {text = 'GPL-3.0'} license = {text = "GPL-3.0"}
requires-python = '>=3.11' requires-python = ">=3.11"
dependencies = [ dependencies = [
'click>=8.0.1', "click>=8.0.1",
'python-dotenv>=0.15.0', "python-dotenv>=0.15.0",
'requests>=2.25.1', "requests>=2.25.1",
'cryptography>=3.4.7', "cryptography>=3.4.7",
"ruamel-yaml>=0.18.10", "ruamel-yaml>=0.18.10",
] ]
[dependency-groups] [dependency-groups]
dev = ['ruff>=0.8.6'] dev = ["ruff>=0.8.6"]
ci = ['coverage>=5.3.1'] ci = ["coverage>=5.3.1"]
[project.optional-dependencies] [project.optional-dependencies]
sentry-enabled = ['sentry_sdk>=0.19.5'] sentry-enabled = ["sentry_sdk>=0.19.5"]
[tool.setuptools.packages] [tool.setuptools.packages]
find = {include = ['transip_client']} find = {include = ["transip_client"]}
[project.scripts] [project.scripts]
transip-listen = 'transip_client.cli:run' transip-listen = "transip_client.cli:run"
[build-system] [build-system]
requires = ['setuptools'] requires = ["setuptools"]
build-backend = 'setuptools.build_meta' build-backend = "setuptools.build_meta"
[tool.uv] [tool.uv]
environments = ["sys_platform == 'linux'"] environments = ["sys_platform == 'linux'"]
@ -40,12 +40,20 @@ select = ["E4", "E7", "E9", "F", "I"]
lines-between-types=1 lines-between-types=1
lines-after-imports=2 lines-after-imports=2
default-section = 'third-party' default-section = "third-party"
known-first-party = ['transip_client'] known-first-party = ["transip_client"]
section-order = [ section-order = [
'future', "future",
'standard-library', "standard-library",
'third-party', "third-party",
'first-party', "first-party",
'local-folder', "local-folder",
]
[tool.coverage.run]
source = ["./transip_client/"]
omit = [
"**/tests/**",
"**/tests.py",
"**/__init__.py"
] ]