-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
232 lines (207 loc) · 6.16 KB
/
pyproject.toml
File metadata and controls
232 lines (207 loc) · 6.16 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
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
[project]
name = "jiggle_version"
version = "2.1.0"
description = "Increment version number found in source code without regex"
readme = "README.md"
authors = [{ name = "Matthew Martin", email = "matthewdeanmartin@gmail.com" }]
keywords = ["version", "version-numbers"]
license = "MIT"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
dependencies = [
"rich-argparse>=1.7.1",
"tomli; python_version < '3.11'",
"pathspec>=0.12",
# "importlib-resources; python_version < '3.9'",
"tomlkit>=0.13.3",
"requests>=2.32.4",
"packaging>=25.0"
]
[dependency-groups]
dev = [
"pytest>=6.0.1",
"pytest-cov>=2.10.1",
"pylint",
"git2md; python_version >= '3.10'",
"pyclean; python_version >= '3.12'",
"strip-docs>=1.0; python_version >= '3.12'",
"gha-update; python_version >= '3.12'",
"mkdocstrings[python]",
"mkdocs; python_version >= '3.12'",
"mdformat",
# plugin finder
"packaging; python_version >= '3.8'",
# mpy
"mypy; python_version >= '3.8'",
"types-toml; python_version >= '3.8'",
"types-requests",
# reports
# build
"vermin; python_version >= '3.8'",
"metametameta>=0.1.3; python_version >= '3.9'",
"hatchling; python_version >= '3.8'",
"ruff>=0.12.0; python_version >= '3.8'",
"pylint; python_version >= '3.8'",
# testing tools
"pytest; python_version >= '3.8'",
"pytest-cov; python_version >= '3.8'",
"pytest-xdist>=3.5.0; python_version >= '3.8'",
"pytest-randomly>=3.15.0; python_version >= '3.8'",
"pytest-sugar>=0.9.7; python_version >= '3.8'",
"pytest-mock; python_version >= '3.8'",
"pytest-unused-fixtures; python_version >= '3.10'",
"hypothesis[cli]; python_version >= '3.8'",
"detect-test-pollution",
# docs
"interrogate>=1.5.0; python_version >= '3.8'",
"pydoctest==0.2.1; python_version >= '3.8'",
"pdoc3>=0.5.0; python_version >= '3.8'",
"mdformat>=0.5.0; python_version >= '3.8'",
"linkcheckmd>=1.4.0; python_version >= '3.8'",
"codespell>=2.2.6; python_version >= '3.8'",
"pyenchant>=3.2.2; python_version >= '3.8'",
]
[project.scripts]
jiggle_version = "jiggle_version.__main__:main"
[build-system]
requires = ["hatchling>=1.8.0"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "jiggle_version/_version.py"
#[tool.hatch.build.targets.wheel.hooks.mypyc]
#enable-by-default = true
#dependencies = [
# "hatch-mypyc>=0.13.0",
# "mypy",
# # Required stubs to be removed when the packages support PEP 561 themselves
# # "types-typed-ast>=1.4.2",
#]
require-runtime-dependencies = true
exclude = [
# There's no good reason for blackd to be compiled.
# "/src/blackd",
# Not performance sensitive, so save bytes + compilation time:
# "/src/blib2to3/__init__.py",
# Breaks the test suite when compiled (and is also useless):
# "/src/black/debug.py",
# Compiled modules can't be run directly and that's a problem here:
"/jiggle_version/__main__.py",
# Messes with docopts
"/jiggle_version/main.py",
]
options = { debug_level = "0" }
[tool.setuptools]
find = { }
#py-modules = ["jiggle_version",
# "jiggle_version.commands",
# "jiggle_version.file_makers",
#]
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
#[build-system]
#requires = ["poetry>=0.12"]
#build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
junit_family = "xunit1"
norecursedirs = ["vendor", "scripts"]
# don't know how to do this in toml
#addopts = "--strict-markers"
#markers =
# slow: marks tests as slow (deselect with '-m "not slow"')
# fast: marks tests as fast (deselect with '-m "not fast"')
[tool.isort]
default_section = "THIRDPARTY"
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["pydoc_fork"]
line_length = 88
multi_line_output = 3
use_parentheses = true
[tool.pydoc_fork]
PREFER_INTERNET_DOCUMENTATION = false
DOCUMENT_INTERNALS = false
SKIP_MODULES = ["typing"]
ONLY_NAMED_AND_SUBS = false
[tool.portray]
output_dir = "doc/docs_portray"
line-length = 320
# Enable Pyflakes `E` and `F` codes by default.
lint.select = ["E", "F",
"D", # docs
"UP", # pyupgrade
"B", # bugbear
]
lint.ignore = [
"D402",
"D301", # messes with doctests
"E722",
# only track structural problems with docstrings, not whitespace, nor missing
"D200", "D212", "D415", "D411", "D205", "D102", "D103", "D100", "D107", "D101", "D104", "D105",
"UP007", "UP038", # Not sure if | is well supported in lowever versions of python
]
lint.per-file-ignores = { }
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Exclude a variety of commonly ignored directories.
exclude = [
"dead_code",
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.jiggle_version]
scheme = "pep440"
default_increment = "patch"
ignore = ["test", "sample_projects", "dead_code", "historical"]