-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (184 loc) · 5.14 KB
/
pyproject.toml
File metadata and controls
197 lines (184 loc) · 5.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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[project]
name = "mkdocstrings-python-accessors"
version = "0.1.3a1"
description = "Support for documenting accessors with mkdocstrings."
authors = [
{ name = "Zebedee Nicholls", email = "zebedee.nicholls@climate-resource.com" },
]
license = {text = "BSD-3-Clause"}
requires-python = ">=3.9"
dependencies = [
"mkdocstrings-python-xref>=1.0",
]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Documentation",
"Topic :: Software Development",
"Topic :: Utilities",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://github.com/climate-resource/mkdocstrings-python-accessors"
Documentation = "https://github.com/climate-resource/mkdocstrings-python-accessors"
Changelog = "https://github.com/climate-resource/mkdocstrings-python-accessors/blob/main/docs/changelog.md"
Repository = "https://github.com/climate-resource/mkdocstrings-python-accessors"
Issues = "https://github.com/climate-resource/mkdocstrings-python-accessors/issues"
[project.optional-dependencies]
[dependency-groups]
# The development dependencies are pinned
# to give a consistent starting point when using this template.
# They should be removed/updated/changed/loosened as suits your project.
# (As soon as you have a lock file, you can remove all of the implied dependencies.)
dev = [
# Key dependencies
# ----------------
"liccheck==0.9.2",
"mypy==1.14.0",
# Required for liccheck, see https://github.com/dhatim/python-license-check/pull/113
"pip==24.3.1",
"pre-commit==4.0.1",
# Required for liccheck, see https://github.com/dhatim/python-license-check/pull/113
"setuptools==75.6.0",
"towncrier==24.8.0",
]
all-dev = [
{include-group = "dev"},
]
[build-system]
requires = [
"pdm-backend",
]
build-backend = "pdm.backend"
[tool.pdm]
[tool.pdm.build]
includes = [
"src/mkdocstrings_handlers",
]
# Consider adding something like this to our copier template.
# Include as much as possible in the source distribution, to help redistributors.
excludes = ["**/.pytest_cache"]
source-includes = [
# "docs",
# "scripts",
# "tests",
# "mkdocs.yml",
# "*.md",
"LICENCE",
]
[tool.mypy]
strict = true
disallow_any_unimported = true
show_error_codes = true
show_error_context = true
warn_unreachable = true
follow_imports = "normal"
[tool.ruff]
src = [
"src",
]
target-version = "py39"
line-length = 88
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"D",
"PL",
"TRY",
"NPY",
"RUF",
"UP",
"S",
]
unfixable = [
"PD002",
]
ignore = [
"D200",
"D400",
"UP007",
]
[tool.ruff.lint.isort]
known-first-party = [
"src",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
[tool.towncrier]
package = "mkdocstrings_handlers.python_accessors"
package_dir = "src"
filename = "docs/changelog.md"
directory = "changelog/"
title_format = "## mkdocstrings-python-accessors {version} ({project_date})"
underlines = [
"",
"",
"",
]
issue_format = "[#{issue}](https://github.com/climate-resource/mkdocstrings-python-accessors/pull/{issue})"
type = [
{ directory = "breaking", name = "⚠️ Breaking Changes", showcontent = true },
{ directory = "deprecation", name = "🗑️ Deprecations", showcontent = true },
{ directory = "feature", name = "🆕 Features", showcontent = true },
{ directory = "improvement", name = "🎉 Improvements", showcontent = true },
{ directory = "fix", name = "🐛 Bug Fixes", showcontent = true },
{ directory = "docs", name = "📚 Improved Documentation", showcontent = true },
{ directory = "trivial", name = "🔧 Trivial/Internal Changes", showcontent = false },
]
[tool.liccheck]
authorized_licenses = [
"bsd",
"bsd license",
"BSD 3-Clause",
"CC0",
"apache",
"apache 2.0",
"apache software",
"apache software license",
"Apache License, Version 2.0",
"CMU License (MIT-CMU)",
"Historical Permission Notice and Disclaimer (HPND)",
"isc",
"isc license",
"isc license (iscl)",
"gnu lgpl",
"lgpl with exceptions or zpl",
"LGPLv2+",
"GNU Lesser General Public License v2 (LGPLv2)",
"GNU Lesser General Public License v2 or later (LGPLv2+)",
"mit",
"mit license",
"Mozilla Public License 2.0 (MPL 2.0)",
"python software foundation",
"python software foundation license",
"The Unlicense (Unlicense)",
"zpl 2.1",
]
unauthorized_licenses = [
"agpl",
"gnu agpl",
"gpl v3",
"gplv3",
"gpl v2",
"gplv2",
"gpl v1",
"gplv1",
]
[tool.liccheck.authorized_packages]
# Apache, just mislabelled (see https://github.com/analog-garage/mkdocstrings-python-xref/blob/main/LICENSE.md)
mkdocstrings-python-xref = "1.*"