pre-commit-uv 4.1.0__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.0
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
@@ -35,14 +35,15 @@ 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.2.33
41
- Provides-Extra: test
42
- Requires-Dist: covdefaults>=2.3; extra == 'test'
43
- Requires-Dist: pytest-cov>=5; extra == 'test'
44
- Requires-Dist: pytest-mock>=3.14; extra == 'test'
45
- Requires-Dist: pytest>=8.3.2; extra == 'test'
41
+ Requires-Dist: uv>=0.4.7
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'
46
47
  Description-Content-Type: text/markdown
47
48
 
48
49
  # pre-commit-uv
@@ -52,7 +53,7 @@ Description-Content-Type: text/markdown
52
53
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pre-commit-uv?style=flat-square)](https://pypi.org/project/pre-commit-uv)
53
54
  [![Downloads](https://static.pepy.tech/badge/pre-commit-uv/month)](https://pepy.tech/project/pre-commit-uv)
54
55
  [![PyPI - License](https://img.shields.io/pypi/l/pre-commit-uv?style=flat-square)](https://opensource.org/licenses/MIT)
55
- [![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)
56
57
 
57
58
  Use `uv` to create virtual environments and install packages for `pre-commit`.
58
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
 
@@ -27,15 +27,16 @@ 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.2.33",
37
+ "uv>=0.4.7",
37
38
  ]
38
- optional-dependencies.test = [
39
+ optional-dependencies.testing = [
39
40
  "covdefaults>=2.3",
40
41
  "pytest>=8.3.2",
41
42
  "pytest-cov>=5",
@@ -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",
@@ -1,74 +1,69 @@
1
1
  [tox]
2
2
  requires =
3
- tox>=4.17.1
3
+ tox>=4.2
4
+ tox-uv>=1.11.3
4
5
  env_list =
5
6
  fix
6
- type
7
- readme
7
+ 3.13
8
8
  3.12
9
9
  3.11
10
10
  3.10
11
11
  3.9
12
+ 3.8
13
+ type
14
+ pkg_meta
12
15
  skip_missing_interpreters = true
13
16
 
14
17
  [testenv]
15
- description = run the unit tests with pytest under {basepython}
18
+ description = run the unit tests with pytest under {base_python}
16
19
  package = wheel
17
20
  wheel_build_env = .pkg
18
21
  extras =
19
- test
22
+ testing
20
23
  pass_env =
21
- PYTEST_ADDOPTS
24
+ PYTEST_*
22
25
  set_env =
23
- COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
26
+ COVERAGE_FILE = {work_dir}/.coverage.{env_name}
24
27
  FORCE_PRE_COMMIT_UV_PATCH = true
25
28
  commands =
26
29
  python -m pytest {tty:--color=yes} {posargs: \
27
- --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}pre_commit_uv \
28
- --cov {toxinidir}{/}tests \
30
+ --cov {env_site_packages_dir}{/}pre_commit_uv --cov {tox_root}{/}tests \
29
31
  --cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
30
- --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 \
31
34
  tests}
32
35
 
33
36
  [testenv:fix]
34
- 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
35
38
  skip_install = true
36
39
  deps =
37
- pre-commit>=3.8
40
+ pre-commit-uv>=4.1.1
38
41
  commands =
39
42
  pre-commit run --all-files --show-diff-on-failure
40
- python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
41
43
 
42
44
  [testenv:type]
43
45
  description = run type check on code base
44
46
  deps =
45
- mypy==1.11.1
46
- set_env =
47
- {tty:MYPY_FORCE_COLOR = 1}
47
+ mypy==1.11.2
48
48
  commands =
49
49
  mypy src
50
50
  mypy tests
51
51
 
52
- [testenv:readme]
52
+ [testenv:pkg_meta]
53
53
  description = check that the long description is valid
54
54
  skip_install = true
55
55
  deps =
56
- build[uv]>=1.2.1
57
56
  check-wheel-contents>=0.6
58
57
  twine>=5.1.1
58
+ uv>=0.4.10
59
59
  commands =
60
- python -m build --installer uv --sdist --wheel -o {envtmpdir} .
61
- twine check {envtmpdir}/*
62
- check-wheel-contents {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}
63
63
 
64
64
  [testenv:dev]
65
65
  description = generate a DEV environment
66
66
  package = editable
67
- extras =
68
- docs
69
- test
70
- set_env =
71
- FORCE_PRE_COMMIT_UV_PATCH = true
72
67
  commands =
73
68
  uv tree
74
69
  python -c 'import sys; print(sys.executable)'
File without changes
File without changes