pre-commit-uv 4.0.3__tar.gz → 4.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/PKG-INFO +3 -2
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/pyproject.toml +6 -2
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/src/pre_commit_uv/__init__.py +11 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/tox.ini +9 -7
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/.gitignore +0 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/LICENSE.txt +0 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/README.md +0 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/src/pre_commit_uv/py.typed +0 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/src/pre_commit_uv_patch.pth +0 -0
- {pre_commit_uv-4.0.3 → pre_commit_uv-4.1.1}/tests/test_main.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pre-commit-uv
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.1.1
|
|
4
4
|
Summary: Run pre-commit with uv
|
|
5
5
|
Project-URL: Bug Tracker, https://github.com/tox-dev/pre-commit-uv/issues
|
|
6
6
|
Project-URL: Changelog, https://github.com/tox-dev/pre-commit-uv/releases
|
|
@@ -35,9 +35,10 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
35
35
|
Classifier: Programming Language :: Python :: 3.10
|
|
36
36
|
Classifier: Programming Language :: Python :: 3.11
|
|
37
37
|
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
38
39
|
Requires-Python: >=3.9
|
|
39
40
|
Requires-Dist: pre-commit>=3.8
|
|
40
|
-
Requires-Dist: uv>=0.
|
|
41
|
+
Requires-Dist: uv>=0.4.7
|
|
41
42
|
Provides-Extra: test
|
|
42
43
|
Requires-Dist: covdefaults>=2.3; extra == 'test'
|
|
43
44
|
Requires-Dist: pytest-cov>=5; extra == 'test'
|
|
@@ -27,13 +27,14 @@ classifiers = [
|
|
|
27
27
|
"Programming Language :: Python :: 3.10",
|
|
28
28
|
"Programming Language :: Python :: 3.11",
|
|
29
29
|
"Programming Language :: Python :: 3.12",
|
|
30
|
+
"Programming Language :: Python :: 3.13",
|
|
30
31
|
]
|
|
31
32
|
dynamic = [
|
|
32
33
|
"version",
|
|
33
34
|
]
|
|
34
35
|
dependencies = [
|
|
35
36
|
"pre-commit>=3.8",
|
|
36
|
-
"uv>=0.
|
|
37
|
+
"uv>=0.4.7",
|
|
37
38
|
]
|
|
38
39
|
optional-dependencies.test = [
|
|
39
40
|
"covdefaults>=2.3",
|
|
@@ -101,6 +102,9 @@ lint.preview = true
|
|
|
101
102
|
builtin = "clear,usage,en-GB_to_en-US"
|
|
102
103
|
count = true
|
|
103
104
|
|
|
105
|
+
[tool.pyproject-fmt]
|
|
106
|
+
max_supported_python = "3.13"
|
|
107
|
+
|
|
104
108
|
[tool.pytest]
|
|
105
109
|
ini_options.testpaths = [
|
|
106
110
|
"tests",
|
|
@@ -118,7 +122,7 @@ paths.source = [
|
|
|
118
122
|
"**/src",
|
|
119
123
|
"**\\src",
|
|
120
124
|
]
|
|
121
|
-
report.fail_under =
|
|
125
|
+
report.fail_under = 63
|
|
122
126
|
run.parallel = true
|
|
123
127
|
run.plugins = [
|
|
124
128
|
"covdefaults",
|
|
@@ -23,6 +23,17 @@ def _patch() -> None:
|
|
|
23
23
|
from pre_commit import main # noqa: PLC0415
|
|
24
24
|
|
|
25
25
|
_original_main, main.main = main.main, _new_main
|
|
26
|
+
if "--version" in sys.argv:
|
|
27
|
+
from importlib.metadata import version as _metadata_version # noqa: PLC0415
|
|
28
|
+
|
|
29
|
+
from pre_commit import constants # noqa: PLC0415
|
|
30
|
+
|
|
31
|
+
constants.VERSION = (
|
|
32
|
+
f"{constants.VERSION} ("
|
|
33
|
+
f"pre-commit-uv={_metadata_version('pre-commit-uv')}, "
|
|
34
|
+
f"uv={_metadata_version('uv')}"
|
|
35
|
+
f")"
|
|
36
|
+
)
|
|
26
37
|
|
|
27
38
|
|
|
28
39
|
def _new_main(argv: list[str] | None = None) -> int:
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
[tox]
|
|
2
2
|
requires =
|
|
3
|
-
tox>=4.
|
|
3
|
+
tox>=4.2
|
|
4
|
+
tox-uv>=1.11.3
|
|
4
5
|
env_list =
|
|
5
6
|
fix
|
|
6
7
|
type
|
|
7
8
|
readme
|
|
9
|
+
3.13
|
|
8
10
|
3.12
|
|
9
11
|
3.11
|
|
10
12
|
3.10
|
|
@@ -34,7 +36,7 @@ commands =
|
|
|
34
36
|
description = run static analysis and style check using flake8
|
|
35
37
|
skip_install = true
|
|
36
38
|
deps =
|
|
37
|
-
pre-commit>=
|
|
39
|
+
pre-commit-uv>=4.1
|
|
38
40
|
commands =
|
|
39
41
|
pre-commit run --all-files --show-diff-on-failure
|
|
40
42
|
python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
|
|
@@ -42,7 +44,7 @@ commands =
|
|
|
42
44
|
[testenv:type]
|
|
43
45
|
description = run type check on code base
|
|
44
46
|
deps =
|
|
45
|
-
mypy==1.11.
|
|
47
|
+
mypy==1.11.2
|
|
46
48
|
set_env =
|
|
47
49
|
{tty:MYPY_FORCE_COLOR = 1}
|
|
48
50
|
commands =
|
|
@@ -53,13 +55,13 @@ commands =
|
|
|
53
55
|
description = check that the long description is valid
|
|
54
56
|
skip_install = true
|
|
55
57
|
deps =
|
|
56
|
-
build[uv]>=1.2.
|
|
58
|
+
build[uv]>=1.2.2
|
|
57
59
|
check-wheel-contents>=0.6
|
|
58
60
|
twine>=5.1.1
|
|
59
61
|
commands =
|
|
60
|
-
|
|
61
|
-
twine check {envtmpdir}
|
|
62
|
-
check-wheel-contents {envtmpdir}
|
|
62
|
+
pyproject-build --installer uv --outdir {envtmpdir} --sdist --wheel .
|
|
63
|
+
twine check {envtmpdir}{/}*
|
|
64
|
+
check-wheel-contents --no-config {envtmpdir}
|
|
63
65
|
|
|
64
66
|
[testenv:dev]
|
|
65
67
|
description = generate a DEV environment
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|