-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
300 lines (282 loc) 路 6.97 KB
/
Copy pathpyproject.toml
File metadata and controls
300 lines (282 loc) 路 6.97 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
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
[project]
name = "vcspull"
version = "1.67.0"
description = "Manage and sync multiple git, mercurial, and svn repos"
requires-python = ">=3.10,<4.0"
license = { text = "MIT" }
authors = [
{name = "Tony Narlock", email = "tony@git-pull.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Utilities",
"Topic :: System :: Shells",
]
packages = [
{ include = "*", from = "src" },
]
include = [
{ path = "tests", format = "sdist" },
{ path = ".tmuxp.yaml", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "examples", format = "sdist" },
{ path = "conftest.py", format = "sdist" },
]
readme = 'README.md'
keywords = [
"vcspull",
"vcs",
"git",
"svn",
"subversion",
"hg",
"mercurial",
"manage",
"manager",
"sync",
"fetcher",
"updater",
"json",
"yaml",
]
homepage = "https://vcspull.git-pull.com"
dependencies = [
"libvcs>=0.46.0,<0.47.0",
"colorama>=0.3.9",
"PyYAML>=6.0"
]
[project-urls]
"Bug Tracker" = "https://github.com/vcs-python/vcspull/issues"
Documentation = "https://vcspull.git-pull.com"
Repository = "https://github.com/vcs-python/vcspull"
Changes = "https://github.com/vcs-python/vcspull/blob/master/CHANGES"
[project.scripts]
vcspull = "vcspull:cli.cli"
[dependency-groups]
dev = [
# Docs
"gp-sphinx==0.1.0a37",
"sphinx-autodoc-argparse==0.1.0a37",
"sphinx-autodoc-api-style==0.1.0a37",
"gp-libs>=0.0.19",
"sphinx-autobuild",
# Testing
"gp-libs>=0.0.19",
"pytest",
"syrupy",
"pytest-asyncio",
"pytest-rerunfailures",
"pytest-mock",
"pytest-watcher",
# Coverage
"codecov",
"coverage",
"pytest-cov",
# Lint
"ruff>=0.16.1",
"mypy",
# Annotations
"types-docutils",
"types-Pygments",
"types-requests",
"types-PyYAML",
"types-colorama"
]
docs = [
"gp-sphinx==0.1.0a37",
"sphinx-autodoc-argparse==0.1.0a37",
"sphinx-autodoc-api-style==0.1.0a37",
"gp-libs>=0.0.19",
"sphinx-autobuild",
]
testing = [
"gp-libs>=0.0.19",
"pytest",
"syrupy",
"pytest-asyncio",
"pytest-rerunfailures",
"pytest-mock",
"pytest-watcher",
]
coverage =[
"codecov",
"coverage",
"pytest-cov",
]
lint = [
"ruff>=0.16.1",
"mypy",
]
typings = [
"types-docutils",
"types-Pygments",
"types-requests",
"types-PyYAML",
"types-colorama"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv.exclude-newer-package]
# vcspull's release cadence is tightly coupled to libvcs -- a libvcs
# release blocking on a 3-day cooldown blocks every contributor's
# ``uv sync`` until the cooldown clears. ``false`` exempts libvcs from
# any ``exclude-newer`` constraint (global or per-user) without
# committing a date that would age into the lockfile.
gp-libs = false
gp-furo-theme = false
gp-sphinx = false
libvcs = false
sphinx-autodoc-api-style = false
sphinx-autodoc-argparse = false
sphinx-autodoc-docutils = false
sphinx-autodoc-fastmcp = false
sphinx-autodoc-pytest-fixtures = false
sphinx-autodoc-sphinx = false
sphinx-autodoc-typehints-gp = false
sphinx-fonts = false
sphinx-gp-opengraph = false
sphinx-gp-llms = false
sphinx-gp-sitemap = false
sphinx-gp-theme = false
sphinx-ux-autodoc-layout = false
sphinx-ux-badges = false
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
files = [
"src",
"tests",
"docs/_ext",
]
strict = true
[[tool.mypy.overrides]]
module = [
"shtab",
"pygments",
"pygments.*",
]
ignore_missing_imports = true
[tool.coverage.run]
branch = true
parallel = true
omit = [
"*/_*",
"*/_compat.py",
"docs/conf.py",
"docs/_ext/*",
"tests/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"return NotImplemented",
"def parse_args",
"if TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"@overload( |$)",
"from __future__ import annotations",
]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
# `select` is deliberately unset: ruff 0.16 enables a curated default rule
# set, and an explicit `select` would replace it rather than extend it.
# `extend-select` layers this project's additional linters on top.
extend-select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"EM", # flake8-errmsg
"Q", # flake8-quotes
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"TRY", # Trycertatops
"PERF", # Perflint
"RUF", # Ruff-specific rules
"D", # pydocstyle
"FA100", # future annotations
]
ignore = [
"COM812", # missing trailing comma, ruff format conflict
]
extend-safe-fixes = [
"UP006",
"UP007",
]
pyupgrade.keep-runtime-typing = false
[tool.ruff.lint.flake8-builtins]
builtins-allowed-modules = [
"dataclasses",
"types",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-first-party = [
"vcspull",
]
combine-as-imports = true
required-imports = [
"from __future__ import annotations",
]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
# Sphinx conf.py reads the package's version metadata by exec'ing
# src/vcspull/__about__.py, so conf.py stays importable without the
# package installed. The input is a file in this repository.
"docs/conf.py" = ["S102"]
# The smoke test's job is to report any failure from importing an
# arbitrary module or invoking the CLI, so the catch has to be as wide
# as the failures it is probing for.
"scripts/runtime_dep_smoketest.py" = ["BLE001"]
# atexit handlers that raise are swallowed by the interpreter, so the
# cursor-restore handler logs and swallows to leave a breadcrumb
# without masking other shutdown tasks.
"src/vcspull/cli/_progress.py" = ["BLE001"]
# The sync worker thread catches everything, including BaseException,
# to hand the failure back to the main thread; narrowing would lose
# the exception instead of reporting it.
"src/vcspull/cli/sync.py" = ["BLE001"]
# A log formatter that raises takes the application down with it, so
# %-format failures in a caller's record become a "Bad message" line
# rather than an exception.
"src/vcspull/log.py" = ["BLE001"]
[tool.pytest.ini_options]
addopts = "--tb=short --no-header --showlocals --doctest-modules"
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = [
"src/vcspull",
"tests",
"docs/_ext",
"scripts",
]
markers = [
"scripts__runtime_dep_smoketest: run runtime dependency smoke tests",
]
filterwarnings = [
"ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::",
]