Skip to content

Commit

Permalink
chore: update pre-commit hooks (#53)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.6.5](astral-sh/ruff-pre-commit@v0.4.5...v0.6.5)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.11.2](pre-commit/mirrors-mypy@v1.10.0...v1.11.2)
- [github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.29.2](python-jsonschema/check-jsonschema@0.28.4...0.29.2)

* chore: remove type ignores

Signed-off-by: Henry Schreiner <[email protected]>

---------

Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Sep 17, 2024
1 parent 644a6b2 commit 0bdce3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
rev: v0.6.5
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
rev: "v1.11.2"
hooks:
- id: mypy
files: src|tests
Expand Down Expand Up @@ -82,7 +82,7 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
rev: 0.29.2
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
4 changes: 2 additions & 2 deletions src/check_sdist/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


def select_installer(
installer: Literal["pip", "uv", "uv|pip"], # type: ignore[name-defined]
installer: Literal["pip", "uv", "uv|pip"],
) -> Literal["uv", "pip"]:
"""
Select uv, pip, or uv if available, then pip ("uv|pip"). Returns uv, pip,
Expand All @@ -44,7 +44,7 @@ def compare(
*,
isolated: bool,
verbose: bool = False,
installer: Literal["uv", "pip", "uv|pip"] = "uv|pip", # type: ignore[name-defined]
installer: Literal["uv", "pip", "uv|pip"] = "uv|pip",
) -> int:
"""
Compare the files in the SDist with the files tracked by git.
Expand Down

0 comments on commit 0bdce3d

Please sign in to comment.