pre-commit-uv 4.0.1__tar.gz → 4.0.3__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.1 → pre_commit_uv-4.0.3}/PKG-INFO +16 -1
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/README.md +15 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/src/pre_commit_uv/__init__.py +3 -1
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/.gitignore +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/LICENSE.txt +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/pyproject.toml +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/src/pre_commit_uv/py.typed +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/src/pre_commit_uv_patch.pth +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/tests/test_main.py +0 -0
- {pre_commit_uv-4.0.1 → pre_commit_uv-4.0.3}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pre-commit-uv
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.3
|
|
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
|
|
@@ -56,6 +56,21 @@ Description-Content-Type: text/markdown
|
|
|
56
56
|
|
|
57
57
|
Use `uv` to create virtual environments and install packages for `pre-commit`.
|
|
58
58
|
|
|
59
|
+
## Installation
|
|
60
|
+
|
|
61
|
+
With pipx:
|
|
62
|
+
|
|
63
|
+
```shell
|
|
64
|
+
pipx install pre-commit
|
|
65
|
+
pipx inject pre-commit pre-commit-uv
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
With uv:
|
|
69
|
+
|
|
70
|
+
```shell
|
|
71
|
+
uv tool install pre-commit --with pre-commit-uv --force-reinstall
|
|
72
|
+
```
|
|
73
|
+
|
|
59
74
|
## Why?
|
|
60
75
|
|
|
61
76
|
Compared to upstream `pre-commit` will speed up the initial seed operation. In general, upstream recommends caching the
|
|
@@ -9,6 +9,21 @@
|
|
|
9
9
|
|
|
10
10
|
Use `uv` to create virtual environments and install packages for `pre-commit`.
|
|
11
11
|
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
With pipx:
|
|
15
|
+
|
|
16
|
+
```shell
|
|
17
|
+
pipx install pre-commit
|
|
18
|
+
pipx inject pre-commit pre-commit-uv
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
With uv:
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
uv tool install pre-commit --with pre-commit-uv --force-reinstall
|
|
25
|
+
```
|
|
26
|
+
|
|
12
27
|
## Why?
|
|
13
28
|
|
|
14
29
|
Compared to upstream `pre-commit` will speed up the initial seed operation. In general, upstream recommends caching the
|
|
@@ -54,7 +54,9 @@ def _new_main(argv: list[str] | None = None) -> int:
|
|
|
54
54
|
py = python.norm_version(version)
|
|
55
55
|
if py is not None:
|
|
56
56
|
venv_cmd.extend(("-p", py))
|
|
57
|
-
|
|
57
|
+
env = os.environ.copy()
|
|
58
|
+
env["UV_INTERNAL__PARENT_INTERPRETER"] = sys.executable
|
|
59
|
+
cmd_output_b(*venv_cmd, cwd="/", env=env)
|
|
58
60
|
|
|
59
61
|
with python.in_env(prefix, version):
|
|
60
62
|
setup_cmd(prefix, (uv, "pip", "install", ".", *additional_dependencies))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|