-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (89 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
106 lines (89 loc) · 2.14 KB
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
100
101
102
103
104
105
106
[project]
name = "pdfbaker"
version = "0.11.4"
description = "SVG Jinja templates + YAML config = PDF documents"
authors = [
{ name = "Danny W. Adair", email = "danny.adair@unfold.nz" }
]
dependencies = [
"cairosvg",
"rich-click",
"jinja2",
"pydantic",
"pypdf",
"ruamel.yaml",
]
readme = "README.md"
requires-python = ">= 3.11"
[project.scripts]
pdfbaker = "pdfbaker.__main__:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
managed = true
dev-dependencies = [
# --- Testing
"pytest",
"pytest-cov",
# --- Security
"pip-audit",
"bandit",
# --- Release
"python-semantic-release"
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/pdfbaker"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=pdfbaker --cov-report=term-missing"
[tool.coverage.run]
source = ["pdfbaker"]
[tool.pylint.main]
py-version = "3.11"
init-hook = "import sys; sys.path.insert(0, 'src')"
[tool.pylint.messages_control]
disable = ["W0511"] # Disable TODO/FIXME warnings
[tool.pylint.reports]
msg-template = "{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
output-format = "colorized"
reports = "no"
score = "no"
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
version_variables = ["src/pdfbaker/__init__.py:__version__"]
branch = "main"
build_command = """
uv lock
git add uv.lock
uv build
"""
tag_format = "{version}"
commit_version_number = true
commit_message = "RELEASE: {version}"
[tool.semantic_release.changelog]
template_dir = ".templates"
[tool.semantic_release.changelog_sections]
feat = "Features"
fix = "Bug Fixes"
docs = "Documentation"
style = "Style"
refactor = "Refactor"
perf = "Performance"
test = "Tests"
build = "Build"
ci = "CI"
chore = "Chores"
revert = "Reverts"
[tool.semantic_release.changelog_exclude]
types = ["style", "test", "build", "ci", "chore"]
[tool.semantic_release.changelog_section_headers]
feat = "### Features"
fix = "### Bug Fixes"
docs = "### Documentation"
refactor = "### Refactor"
perf = "### Performance"
revert = "### Reverts"