pre-commit-uv 4.1.3__tar.gz → 4.1.4__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.3
3
+ Version: 4.1.4
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
@@ -65,13 +65,9 @@ def _new_main(argv: list[str] | None = None) -> int:
65
65
  logger = logging.getLogger("pre_commit")
66
66
  logger.info("Using pre-commit with uv %s via pre-commit-uv %s", uv_version(), self_version())
67
67
  uv = _uv()
68
- venv_cmd = [uv, "venv", environment_dir(prefix, python.ENVIRONMENT_DIR, version)]
69
- py = python.norm_version(version)
70
- if py is not None:
71
- venv_cmd.extend(("-p", py))
72
- env = os.environ.copy()
73
- env["UV_INTERNAL__PARENT_INTERPRETER"] = sys.executable
74
- cmd_output_b(*venv_cmd, cwd="/", env=env)
68
+ py = python.norm_version(version) or os.environ.get("UV_PYTHON", sys.executable)
69
+ venv_cmd = [uv, "venv", environment_dir(prefix, python.ENVIRONMENT_DIR, version), "-p", py]
70
+ cmd_output_b(*venv_cmd, cwd="/")
75
71
 
76
72
  with python.in_env(prefix, version):
77
73
  setup_cmd(prefix, (uv, "pip", "install", ".", *additional_dependencies))
File without changes
File without changes
File without changes
File without changes