Skip to content

Commit

Permalink
Merge pull request #2450 from VWS-Python/pin-uv
Browse files Browse the repository at this point in the history
Pin uv for pre-commit hook
  • Loading branch information
adamtheturtle authored Oct 21, 2024
2 parents e1ba7cd + e8083dd commit 90ed291
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,45 +77,45 @@ repos:
language: python
pass_filenames: false
types_or: [yaml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: docformatter
name: docformatter
entry: uv run --extra=dev -m docformatter --in-place
language: python
types_or: [python]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: shellcheck
name: shellcheck
entry: uv run --extra=dev shellcheck --shell=bash
language: python
pass_filenames: false
types_or: [shell]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: shellcheck-docs
name: shellcheck-docs
entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
--shell=bash"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: shfmt
name: shfmt
entry: uv run --extra=dev shfmt --write --space-redirects --indent=4
language: python
types_or: [shell]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: shfmt-docs
name: shfmt-docs
entry: uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
--no-pad-file --command="shfmt --write --space-redirects --indent=4"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: mypy
name: mypy
Expand All @@ -124,23 +124,23 @@ repos:
language: python
types_or: [python, toml]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: mypy-docs
name: mypy-docs
stages: [pre-push]
entry: uv run --extra=dev doccmd --language=python --command="mypy"
language: python
types_or: [markdown, rst, python, toml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: check-manifest
name: check-manifest
stages: [pre-push]
entry: uv run --extra=dev -m check_manifest
language: python
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pyright
name: pyright
Expand All @@ -149,119 +149,119 @@ repos:
language: python
types_or: [python, toml]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pyright-docs
name: pyright-docs
stages: [pre-push]
entry: uv run --extra=dev doccmd --language=python --command="pyright"
language: python
types_or: [markdown, rst, python, toml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: vulture
name: vulture
entry: uv run --extra=dev -m vulture .
language: python
types_or: [python]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: vulture-docs
name: vulture docs
entry: uv run --extra=dev doccmd --language=python --command="vulture"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pyroma
name: pyroma
entry: uv run --extra=dev -m pyroma --min 10 .
language: python
pass_filenames: false
types_or: [toml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: deptry
name: deptry
entry: uv run --extra=dev -m deptry src/
language: python
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pylint
name: pylint
entry: uv run --extra=dev -m pylint *.py src/ tests/ docs/
language: python
stages: [manual]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pylint-docs
name: pylint-docs
entry: uv run --extra=dev doccmd --language=python --command="pylint"
language: python
stages: [manual]
types_or: [markdown, rst, python, toml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: ruff-check-fix
name: Ruff check fix
entry: uv run --extra=dev -m ruff check --fix
language: python
types_or: [python]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: ruff-check-fix-docs
name: Ruff check fix docs
entry: uv run --extra=dev doccmd --language=python --command="ruff check --fix"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: ruff-format-fix
name: Ruff format
entry: uv run --extra=dev -m ruff format
language: python
types_or: [python]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: ruff-format-fix-docs
name: Ruff format docs
entry: uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
format"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: doc8
name: doc8
entry: uv run --extra=dev -m doc8
language: python
types_or: [rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: interrogate
name: interrogate
entry: uv run --extra=dev -m interrogate
language: python
types_or: [python]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: interrogate-docs
name: interrogate docs
entry: uv run --extra=dev doccmd --language=python --command="interrogate"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pyproject-fmt-fix
name: pyproject-fmt
entry: uv run --extra=dev pyproject-fmt
language: python
types_or: [toml]
files: pyproject.toml
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: linkcheck
name: linkcheck
Expand All @@ -270,7 +270,7 @@ repos:
types_or: [rst]
stages: [manual]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: spelling
name: spelling
Expand All @@ -279,15 +279,15 @@ repos:
types_or: [rst]
stages: [manual]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: docs
name: Build Documentation
entry: make docs
language: python
stages: [manual]
pass_filenames: false
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: pyright-verifytypes
name: pyright-verifytypes
Expand All @@ -296,11 +296,11 @@ repos:
language: python
pass_filenames: false
types_or: [python]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

- id: yamlfix
name: yamlfix
entry: uv run --extra=dev yamlfix
language: python
types_or: [yaml]
additional_dependencies: [uv]
additional_dependencies: [uv==0.4.25]

0 comments on commit 90ed291

Please sign in to comment.