Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#38)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](python-jsonschema/check-jsonschema@0.29.4...0.30.0)
- [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.8.1](astral-sh/ruff-pre-commit@v0.8.0...v0.8.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 3, 2024
1 parent 81dee08 commit da747ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.30.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.0"
rev: "v0.8.1"
hooks:
- id: ruff-format
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions src/pre_commit_uv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def _version_info(exe: str) -> str:

prog = 'import sys;print(".".join(str(p) for p in sys.version_info[0:3]))'
try:
return cast(str, cmd_output(exe, "-S", "-c", prog)[1].strip())
return cast("str", cmd_output(exe, "-S", "-c", prog)[1].strip())
except CalledProcessError:
return f"<<error retrieving version from {exe}>>"

python.install_environment = _install_environment
python._version_info = _version_info # noqa: SLF001
assert _original_main is not None # noqa: S101
return cast(int, _original_main(argv))
return cast("int", _original_main(argv))

0 comments on commit da747ad

Please sign in to comment.