-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
170 lines (150 loc) · 3.5 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[project]
name = "plone_repo_helper"
description = "Tools for Plone mono repo maintainers."
readme = "README.md"
dynamic = ["version"]
authors = [
{ name = "kitconcept GmbH", email = "[email protected]" },
{ name = "PloneGov-BR", email = "[email protected]" }
]
license = "MIT"
keywords = ["Plone"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 6.1",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
]
requires-python = ">=3.12"
dependencies = [
"dynaconf>=3.2.10",
"gitpython>=3.1.44",
"hatch>=1.14.0",
"hatchling>=1.27.0",
"mxdev>=4.0.3",
"packaging>=24.2",
"pyyaml>=6.0.2",
"requests>=2.32.3",
"semver>=3.0.4",
"tomlkit>=0.13.2",
"towncrier>=24.8.0",
"typer>=0.15.2",
]
[project.urls]
Documentation = "https://github.com/kitconcept/plone-repo-helper#readme"
Issues = "https://github.com/kitconcept/plone-repo-helper/issues"
Source = "https://github.com/kitconcept/plone-repo-helper"
[project.scripts]
repo = "plone_repo_helper.cli:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/plone_repo_helper/__init__.py"
[tool.hatch.build]
strict-naming = false
packages = ["src/plone_repo_helper"]
[tool.hatch.build.targets.wheel]
sources = ["src"]
only-include = ["src/plone_repo_helper"]
[dependency-groups]
test = [
"pytest>8.0.0",
"ruff>=0.9.5",
"towncrier>=24.8.0",
"pytest-cov>=6.0.0",
"mypy>=1.15.0",
"pytest-recording>=0.13.2",
"types-requests>=2.32.0.20250306",
]
[tool.uv]
default-groups = ["test"]
[tool.towncrier]
package = "plone_repo_helper"
package_dir = "src"
directory = "news/"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "## {version} ({project_date})"
template = "news/.changelog_template.jinja"
issue_format = "[#{issue}](https://github.com/kitconcept/plone-repo-helper/issues/{issue})"
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes:"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Feature"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfix"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "tests"
name = "Tests"
showcontent = true
[tool.ruff]
target-version = "py311"
line-length = 88
fix = true
lint.select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# mccabe
"C90",
# pycodestyle
"E", "W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
]
lint.ignore = [
# DoNotAssignLambda
"E731",
]
[tool.ruff.lint.isort]
case-sensitive = false
no-sections = true
force-single-line = true
from-first = true
lines-after-imports = 2
lines-between-types = 1
[tool.ruff.format]
preview = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.mypy]
ignore_missing_imports = true