pre-commit-uv
Advanced tools
+7
-7
| Metadata-Version: 2.3 | ||
| Name: pre-commit-uv | ||
| Version: 4.1.1 | ||
| Version: 4.1.2 | ||
| Summary: Run pre-commit with uv | ||
@@ -42,7 +42,7 @@ Project-URL: Bug Tracker, https://github.com/tox-dev/pre-commit-uv/issues | ||
| Requires-Dist: uv>=0.4.7 | ||
| Provides-Extra: test | ||
| Requires-Dist: covdefaults>=2.3; extra == 'test' | ||
| Requires-Dist: pytest-cov>=5; extra == 'test' | ||
| Requires-Dist: pytest-mock>=3.14; extra == 'test' | ||
| Requires-Dist: pytest>=8.3.2; extra == 'test' | ||
| Provides-Extra: testing | ||
| Requires-Dist: covdefaults>=2.3; extra == 'testing' | ||
| Requires-Dist: pytest-cov>=5; extra == 'testing' | ||
| Requires-Dist: pytest-mock>=3.14; extra == 'testing' | ||
| Requires-Dist: pytest>=8.3.2; extra == 'testing' | ||
| Description-Content-Type: text/markdown | ||
@@ -57,3 +57,3 @@ | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml) | ||
| [](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml) | ||
@@ -60,0 +60,0 @@ Use `uv` to create virtual environments and install packages for `pre-commit`. |
+1
-1
@@ -39,3 +39,3 @@ [build-system] | ||
| ] | ||
| optional-dependencies.test = [ | ||
| optional-dependencies.testing = [ | ||
| "covdefaults>=2.3", | ||
@@ -42,0 +42,0 @@ "pytest>=8.3.2", |
+1
-1
@@ -8,3 +8,3 @@ # pre-commit-uv | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yml) | ||
| [](https://github.com/tox-dev/pre-commit-uv/actions/workflows/check.yaml) | ||
@@ -11,0 +11,0 @@ Use `uv` to create virtual environments and install packages for `pre-commit`. |
+17
-24
@@ -7,4 +7,2 @@ [tox] | ||
| fix | ||
| type | ||
| readme | ||
| 3.13 | ||
@@ -15,31 +13,33 @@ 3.12 | ||
| 3.9 | ||
| 3.8 | ||
| type | ||
| pkg_meta | ||
| skip_missing_interpreters = true | ||
| [testenv] | ||
| description = run the unit tests with pytest under {basepython} | ||
| description = run the unit tests with pytest under {base_python} | ||
| package = wheel | ||
| wheel_build_env = .pkg | ||
| extras = | ||
| test | ||
| testing | ||
| pass_env = | ||
| PYTEST_ADDOPTS | ||
| PYTEST_* | ||
| set_env = | ||
| COVERAGE_FILE = {toxworkdir}/.coverage.{envname} | ||
| COVERAGE_FILE = {work_dir}/.coverage.{env_name} | ||
| FORCE_PRE_COMMIT_UV_PATCH = true | ||
| commands = | ||
| python -m pytest {tty:--color=yes} {posargs: \ | ||
| --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}pre_commit_uv \ | ||
| --cov {toxinidir}{/}tests \ | ||
| --cov {env_site_packages_dir}{/}pre_commit_uv --cov {tox_root}{/}tests \ | ||
| --cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \ | ||
| --cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \ | ||
| --cov-report html:{env_tmp_dir}{/}htmlcov --cov-report xml:{work_dir}{/}coverage.{env_name}.xml \ | ||
| --junitxml {work_dir}{/}junit.{env_name}.xml \ | ||
| tests} | ||
| [testenv:fix] | ||
| description = run static analysis and style check using flake8 | ||
| description = format the code base to adhere to our styles, and complain about what we cannot do automatically | ||
| skip_install = true | ||
| deps = | ||
| pre-commit-uv>=4.1 | ||
| pre-commit-uv>=4.1.1 | ||
| commands = | ||
| pre-commit run --all-files --show-diff-on-failure | ||
| python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")' | ||
@@ -50,4 +50,2 @@ [testenv:type] | ||
| mypy==1.11.2 | ||
| set_env = | ||
| {tty:MYPY_FORCE_COLOR = 1} | ||
| commands = | ||
@@ -57,13 +55,13 @@ mypy src | ||
| [testenv:readme] | ||
| [testenv:pkg_meta] | ||
| description = check that the long description is valid | ||
| skip_install = true | ||
| deps = | ||
| build[uv]>=1.2.2 | ||
| check-wheel-contents>=0.6 | ||
| twine>=5.1.1 | ||
| uv>=0.4.10 | ||
| commands = | ||
| pyproject-build --installer uv --outdir {envtmpdir} --sdist --wheel . | ||
| twine check {envtmpdir}{/}* | ||
| check-wheel-contents --no-config {envtmpdir} | ||
| uv build --sdist --wheel --out-dir {env_tmp_dir} . | ||
| twine check {env_tmp_dir}{/}* | ||
| check-wheel-contents --no-config {env_tmp_dir} | ||
@@ -73,7 +71,2 @@ [testenv:dev] | ||
| package = editable | ||
| extras = | ||
| docs | ||
| test | ||
| set_env = | ||
| FORCE_PRE_COMMIT_UV_PATCH = true | ||
| commands = | ||
@@ -80,0 +73,0 @@ uv tree |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
19055
-0.8%