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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pre-commit-uv
3
- Version: 4.1.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: test
43
- Requires-Dist: covdefaults>=2.3; extra == 'test'
44
- Requires-Dist: pytest-cov>=5; extra == 'test'
45
- Requires-Dist: pytest-mock>=3.14; extra == 'test'
46
- Requires-Dist: pytest>=8.3.2; extra == 'test'
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
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pre-commit-uv?style=flat-square)](https://pypi.org/project/pre-commit-uv)
54
54
  [![Downloads](https://static.pepy.tech/badge/pre-commit-uv/month)](https://pepy.tech/project/pre-commit-uv)
55
55
  [![PyPI - License](https://img.shields.io/pypi/l/pre-commit-uv?style=flat-square)](https://opensource.org/licenses/MIT)
56
- [![check](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml)
56
+ [![check](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml/badge.svg)](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
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pre-commit-uv?style=flat-square)](https://pypi.org/project/pre-commit-uv)
6
6
  [![Downloads](https://static.pepy.tech/badge/pre-commit-uv/month)](https://pepy.tech/project/pre-commit-uv)
7
7
  [![PyPI - License](https://img.shields.io/pypi/l/pre-commit-uv?style=flat-square)](https://opensource.org/licenses/MIT)
8
- [![check](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml)
8
+ [![check](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml/badge.svg)](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
 
@@ -36,7 +36,7 @@ dependencies = [
36
36
  "pre-commit>=3.8",
37
37
  "uv>=0.4.7",
38
38
  ]
39
- optional-dependencies.test = [
39
+ optional-dependencies.testing = [
40
40
  "covdefaults>=2.3",
41
41
  "pytest>=8.3.2",
42
42
  "pytest-cov>=5",
@@ -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 {basepython}
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
- test
22
+ testing
22
23
  pass_env =
23
- PYTEST_ADDOPTS
24
+ PYTEST_*
24
25
  set_env =
25
- COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
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
- --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}pre_commit_uv \
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:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
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 = run static analysis and style check using flake8
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:readme]
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
- pyproject-build --installer uv --outdir {envtmpdir} --sdist --wheel .
63
- twine check {envtmpdir}{/}*
64
- check-wheel-contents --no-config {envtmpdir}
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