-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
275 lines (247 loc) · 6.11 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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
[build-system]
requires = ["setuptools >= 61.2"]
build-backend = "setuptools.build_meta"
[project]
authors = [
{ name = "Corey Oordt", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
]
dependencies = [
"click-log",
"cookiecutter==2.6.0",
"fsspec[http]",
"ghapi",
"gitpython>=3.1.37",
"immutabledict",
"orjson",
"pydantic>2.0.0",
"questionary",
"requests",
"rich-click",
"ruamel.yaml",
"toml",
]
description = "Create new projects from a composition of several templates"
dynamic = ["version", ]
license = { text = "BSD-3-Clause" }
keywords = ["cookie-composer", "cookiecutter", "scaffold"]
name = "cookie-composer"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8"
[project.optional-dependencies]
dev = [
"bump-my-version>=0.11.0",
"git-fame>=1.12.2",
"generate-changelog",
"pip-tools",
]
docs = [
"black",
"markdown-customblocks",
"mdx-truly-sane-lists",
"mkdocs",
"mkdocs-click",
"mkdocs-drawio",
"mkdocs-gen-files",
"mkdocs-git-authors-plugin",
"mkdocs-git-committers-plugin",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-include-markdown-plugin",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocstrings[python]",
"python-frontmatter",
"pyyaml",
]
test = [
"coverage>=6.1.2",
"pre-commit>=2.15.0",
"pytest-cov>=3.0.0",
"pytest-env",
"pytest-mock",
"pytest>=6.0.0",
]
[project.scripts]
cookie-composer = "cookie_composer.cli:cli"
[project.urls]
Homepage = "https://github.com/callowayproject/cookie-composer"
Documentation = "https://callowayproject.github.io/cookie-composer/"
[tool.setuptools]
zip-safe = false
include-package-data = true
[tool.setuptools.packages.find]
exclude = ["example*", "tests*", "docs", "build", ]
namespaces = false
[tool.setuptools.dynamic.version]
attr = "cookie_composer.__version__"
[tool.coverage.run]
branch = true
omit = ["**/test_*.py"]
[tool.coverage.report]
omit = [
"*site-packages*",
"*tests*",
"*.tox*",
"**/_vendor/**",
]
show_missing = true
exclude_lines = [
"raise NotImplementedError",
"pragma: no-coverage",
"pragma: no cover",
]
[tool.pytest.ini_options]
addopts = [
"--cov=cookie_composer",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term",
"--cov-report=html",
]
norecursedirs = [
".*",
"build",
"dist",
"{arch}",
"*.egg",
"venv",
"requirements*",
"lib",
]
python_files = "test*.py"
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = true
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = true
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["setup.py", "docs", "build"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
[tool.black]
line-length = 119
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 119
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "W", "F", "I", "N", "B", "BLE", "C", "D", "E", "F", "I", "N", "S", "T", "W", "RUF", "NPY", "PD", "PGH", "ANN", "C90", "PL", "PLC", "PLE", "PLW", "TCH"]
unfixable = []
select = ["E", "W", "F", "I", "N", "B", "BLE", "C", "D", "E", "F", "I", "N", "S", "T", "W", "RUF", "NPY", "PD", "PGH", "ANN", "C90", "PLC", "PLE", "PLW", "TCH"]
ignore = [
"ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN401",
"S101", "S104", "S603",
"D106", "D107", "D200", "D212",
"PLW1510",
]
typing-modules = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ANN001",
"ANN002",
"ANN003",
"ANN101",
"ANN201",
"ANN202",
"D",
"PGH003",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLW0603",
"S101",
"S105",
"S106",
"S607",
"T",
"TRY003",
"TRY201",
"TRY301",
]
"cookie_composer/cc_overrides.py" = ["C901"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.isort]
order-by-type = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.bumpversion]
allow_dirty = true
commit = true
commit_args = "--no-verify"
current_version = "0.13.1"
message = "Version updated from {current_version} to {new_version}"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<dev>post)(?P<release_num>\\d+)\\.dev(?P<revision>\\d+))?"
serialize = [
"{major}.{minor}.{patch}.{dev}{$PR_NUMBER}.dev{$REVISION}",
"{major}.{minor}.{patch}"
]
tag = true
tag_name = "{new_version}"
[tool.bumpversion.parts.dev]
values = ["release", "post"]
[[tool.bumpversion.files]]
filename = "cookie_composer/__init__.py"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "Unreleased"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "{current_version}...HEAD"
replace = "{current_version}...{new_version}"
[tool.pydoclint]
style = "google"
exclude = '\.git|tests'
require-return-section-when-returning-nothing = false
arg-type-hints-in-docstring = false
check-return-types = false
check-yield-types = false
quiet = true