forked from twisted/towncrier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
169 lines (142 loc) · 3.94 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "towncrier"
# For dev - 23.11.0.dev0
# For RC - 23.11.0rc1 (release candidate starts at 1)
# For final - 23.11.0
# make sure to follow PEP440
version = "24.7.2.dev0"
description = "Building newsfiles for your project."
readme = "README.rst"
license = "MIT"
# Keep version list in-sync with noxfile/tests & ci.yml/test-linux.
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.8"
dependencies = [
"click",
"importlib-resources>=5; python_version<'3.10'",
"importlib-metadata>=4.6; python_version<'3.10'",
"jinja2",
"tomli; python_version<'3.11'",
]
[project.optional-dependencies]
dev = [
"packaging",
"sphinx >= 5",
"furo >= 2024.05.06",
"twisted",
"nox",
]
[project.scripts]
towncrier = "towncrier._shell:cli"
[project.urls]
Documentation = "https://towncrier.readthedocs.io/"
Chat = "https://web.libera.chat/?channels=%23twisted"
"Mailing list" = "https://mail.python.org/mailman3/lists/twisted.python.org/"
Issues = "https://github.com/twisted/towncrier/issues"
Repository = "https://github.com/twisted/towncrier"
Tests = "https://github.com/twisted/towncrier/actions?query=branch%3Atrunk"
Coverage = "https://codecov.io/gh/twisted/towncrier"
Distribution = "https://pypi.org/project/towncrier"
[tool.hatch.build]
exclude = [
"admin",
"bin",
"docs",
".readthedocs.yaml",
"src/towncrier/newsfragments",
]
[tool.towncrier]
package = "towncrier"
package_dir = "src"
filename = "NEWS.rst"
issue_format = "`#{issue} <https://github.com/twisted/towncrier/issues/{issue}>`_"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = false
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.nox
| \.venv
| \.env
| env
| _build
| _trial_temp.*
| build
| dist
| debian
)/
)
'''
[tool.isort]
profile = "attrs"
line_length = 88
[tool.ruff.isort]
# Match isort's "attrs" profile
lines-after-imports = 2
lines-between-types = 1
[tool.mypy]
strict = true
# 2022-09-04: Trial's API isn't annotated yet, which limits the usefulness of type-checking
# the unit tests. Therefore they have not been annotated yet.
exclude = '^src/towncrier/test/test_.*\.py$'
[[tool.mypy.overrides]]
module = 'towncrier.click_default_group'
# Vendored module without type annotations.
ignore_errors = true
[tool.coverage.run]
parallel = true
branch = true
source = ["towncrier"]
[tool.coverage.paths]
source = ["src", ".nox/tests-*/**/site-packages"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
omit = [
"src/towncrier/__main__.py",
"src/towncrier/test/*",
"src/towncrier/click_default_group.py",
]