pre-commit-uv 4.1.1__tar.gz → 4.1.2__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.1.1 → pre_commit_uv-4.1.2}/PKG-INFO +7 -7
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/README.md +1 -1
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/pyproject.toml +1 -1
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/tox.ini +17 -24
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/.gitignore +0 -0
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/LICENSE.txt +0 -0
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/src/pre_commit_uv/__init__.py +0 -0
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/src/pre_commit_uv/py.typed +0 -0
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/src/pre_commit_uv_patch.pth +0 -0
- {pre_commit_uv-4.1.1 → pre_commit_uv-4.1.2}/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.1.
|
|
3
|
+
Version: 4.1.2
|
|
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
|
|
@@ -39,11 +39,11 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
39
39
|
Requires-Python: >=3.9
|
|
40
40
|
Requires-Dist: pre-commit>=3.8
|
|
41
41
|
Requires-Dist: uv>=0.4.7
|
|
42
|
-
Provides-Extra:
|
|
43
|
-
Requires-Dist: covdefaults>=2.3; extra == '
|
|
44
|
-
Requires-Dist: pytest-cov>=5; extra == '
|
|
45
|
-
Requires-Dist: pytest-mock>=3.14; extra == '
|
|
46
|
-
Requires-Dist: pytest>=8.3.2; extra == '
|
|
42
|
+
Provides-Extra: testing
|
|
43
|
+
Requires-Dist: covdefaults>=2.3; extra == 'testing'
|
|
44
|
+
Requires-Dist: pytest-cov>=5; extra == 'testing'
|
|
45
|
+
Requires-Dist: pytest-mock>=3.14; extra == 'testing'
|
|
46
|
+
Requires-Dist: pytest>=8.3.2; extra == 'testing'
|
|
47
47
|
Description-Content-Type: text/markdown
|
|
48
48
|
|
|
49
49
|
# pre-commit-uv
|
|
@@ -53,7 +53,7 @@ Description-Content-Type: text/markdown
|
|
|
53
53
|
[](https://pypi.org/project/pre-commit-uv)
|
|
54
54
|
[](https://pepy.tech/project/pre-commit-uv)
|
|
55
55
|
[](https://opensource.org/licenses/MIT)
|
|
56
|
-
[](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml)
|
|
57
57
|
|
|
58
58
|
Use `uv` to create virtual environments and install packages for `pre-commit`.
|
|
59
59
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://pypi.org/project/pre-commit-uv)
|
|
6
6
|
[](https://pepy.tech/project/pre-commit-uv)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
[](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml)
|
|
9
9
|
|
|
10
10
|
Use `uv` to create virtual environments and install packages for `pre-commit`.
|
|
11
11
|
|
|
@@ -4,73 +4,66 @@ requires =
|
|
|
4
4
|
tox-uv>=1.11.3
|
|
5
5
|
env_list =
|
|
6
6
|
fix
|
|
7
|
-
type
|
|
8
|
-
readme
|
|
9
7
|
3.13
|
|
10
8
|
3.12
|
|
11
9
|
3.11
|
|
12
10
|
3.10
|
|
13
11
|
3.9
|
|
12
|
+
3.8
|
|
13
|
+
type
|
|
14
|
+
pkg_meta
|
|
14
15
|
skip_missing_interpreters = true
|
|
15
16
|
|
|
16
17
|
[testenv]
|
|
17
|
-
description = run the unit tests with pytest under {
|
|
18
|
+
description = run the unit tests with pytest under {base_python}
|
|
18
19
|
package = wheel
|
|
19
20
|
wheel_build_env = .pkg
|
|
20
21
|
extras =
|
|
21
|
-
|
|
22
|
+
testing
|
|
22
23
|
pass_env =
|
|
23
|
-
|
|
24
|
+
PYTEST_*
|
|
24
25
|
set_env =
|
|
25
|
-
COVERAGE_FILE = {
|
|
26
|
+
COVERAGE_FILE = {work_dir}/.coverage.{env_name}
|
|
26
27
|
FORCE_PRE_COMMIT_UV_PATCH = true
|
|
27
28
|
commands =
|
|
28
29
|
python -m pytest {tty:--color=yes} {posargs: \
|
|
29
|
-
--
|
|
30
|
-
--cov {toxinidir}{/}tests \
|
|
30
|
+
--cov {env_site_packages_dir}{/}pre_commit_uv --cov {tox_root}{/}tests \
|
|
31
31
|
--cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
|
|
32
|
-
--cov-report html:{
|
|
32
|
+
--cov-report html:{env_tmp_dir}{/}htmlcov --cov-report xml:{work_dir}{/}coverage.{env_name}.xml \
|
|
33
|
+
--junitxml {work_dir}{/}junit.{env_name}.xml \
|
|
33
34
|
tests}
|
|
34
35
|
|
|
35
36
|
[testenv:fix]
|
|
36
|
-
description =
|
|
37
|
+
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
|
|
37
38
|
skip_install = true
|
|
38
39
|
deps =
|
|
39
|
-
pre-commit-uv>=4.1
|
|
40
|
+
pre-commit-uv>=4.1.1
|
|
40
41
|
commands =
|
|
41
42
|
pre-commit run --all-files --show-diff-on-failure
|
|
42
|
-
python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
|
|
43
43
|
|
|
44
44
|
[testenv:type]
|
|
45
45
|
description = run type check on code base
|
|
46
46
|
deps =
|
|
47
47
|
mypy==1.11.2
|
|
48
|
-
set_env =
|
|
49
|
-
{tty:MYPY_FORCE_COLOR = 1}
|
|
50
48
|
commands =
|
|
51
49
|
mypy src
|
|
52
50
|
mypy tests
|
|
53
51
|
|
|
54
|
-
[testenv:
|
|
52
|
+
[testenv:pkg_meta]
|
|
55
53
|
description = check that the long description is valid
|
|
56
54
|
skip_install = true
|
|
57
55
|
deps =
|
|
58
|
-
build[uv]>=1.2.2
|
|
59
56
|
check-wheel-contents>=0.6
|
|
60
57
|
twine>=5.1.1
|
|
58
|
+
uv>=0.4.10
|
|
61
59
|
commands =
|
|
62
|
-
|
|
63
|
-
twine check {
|
|
64
|
-
check-wheel-contents --no-config {
|
|
60
|
+
uv build --sdist --wheel --out-dir {env_tmp_dir} .
|
|
61
|
+
twine check {env_tmp_dir}{/}*
|
|
62
|
+
check-wheel-contents --no-config {env_tmp_dir}
|
|
65
63
|
|
|
66
64
|
[testenv:dev]
|
|
67
65
|
description = generate a DEV environment
|
|
68
66
|
package = editable
|
|
69
|
-
extras =
|
|
70
|
-
docs
|
|
71
|
-
test
|
|
72
|
-
set_env =
|
|
73
|
-
FORCE_PRE_COMMIT_UV_PATCH = true
|
|
74
67
|
commands =
|
|
75
68
|
uv tree
|
|
76
69
|
python -c 'import sys; print(sys.executable)'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|