-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (89 loc) · 2.31 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "genifest"
version = "0.1.0"
description = "Genifest generates Manifest Files for the Green Software Impact Framework by combining usage data from a server with a template file"
readme = "README.md"
authors = [{name = "Torsten Irländer", email = "[email protected]"}]
requires-python = ">=3.12"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
]
dependencies = [
"click",
"python_dotenv",
"structlog",
"requests",
"pyyaml"
]
[project.optional-dependencies]
development = [
# Testing
"pytest",
"pytest-cov",
"coverage[toml]",
"debugpy",
# Code-Style
"pre-commit",
"ruff",
# Packaging
"commitizen",
"twine",
"wheel",
"pip-licenses",
# Documentation
"mkdocs",
"mkdocs-mermaid2-plugin",
"mkdocstrings[python]",
"mkdocs-material"
]
[project.scripts]
genifest = "genifest.cli:cli"
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["genifest*"] # package names should match these glob patterns (["*"] by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = true # to disable scanning PEP 420 namespaces (true by default)
[tool.coverage.run]
omit = [
# omit anything in a werkbank directory anywhere
"*/werkbank/*",
# omit this single file
"genifest/cli.py"
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
"if TYPE_CHECKING",
"@abstractmethod",
'^if __name__ == "__main__"',
"^from.*import",
"^import"
]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_type = "pep440"
version_provider = "pep621"
version_files = [
"pyproject.toml",
"sonar-project.properties:sonar.projectVersion"
]
update_changelog_on_bump = true
major_version_zero = true
[tool.ruff]
line-length = 120 # E501
[tool.ruff.lint]
extend-select = [
"I",
]