Skip to content

Commit

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

updates:
- [github.com/adamchainz/blacken-docs: 1.18.0 → 1.19.1](adamchainz/blacken-docs@1.18.0...1.19.1)
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.7.2](astral-sh/ruff-pre-commit@v0.6.3...v0.7.2)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](pre-commit/mirrors-mypy@v1.11.2...v1.13.0)
- [github.com/henryiii/validate-pyproject-schema-store: 2024.08.26 → 2024.10.21](henryiii/validate-pyproject-schema-store@2024.08.26...2024.10.21)
- [github.com/python-jsonschema/check-jsonschema: 0.29.2 → 0.29.4](python-jsonschema/check-jsonschema@0.29.2...0.29.4)

* chore: fix in tomli applied

* chore: faster mypy

---------

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 Nov 12, 2024
1 parent 7fe5485 commit 67564b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ ci:

repos:
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.3"
rev: "v0.7.2"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -24,7 +24,7 @@ repos:
types_or: [yaml, markdown, html, css, scss, javascript, json]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -45,14 +45,15 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy
files: (src|web|tests)
args: []
additional_dependencies:
- click>=8.1.5
- markdown-it-py
- orjson
- pytest
- rich
- tomli
Expand All @@ -78,12 +79,12 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.08.26
rev: 2024.10.21
hooks:
- id: validate-pyproject

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
rev: 0.29.4
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
3 changes: 1 addition & 2 deletions src/repo_review/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def pyproject(package: Traversable) -> dict[str, Any]:
pyproject_path = package.joinpath("pyproject.toml")
if pyproject_path.is_file():
with pyproject_path.open("rb") as f:
# Type ignore fixed in https://github.com/hukkin/tomli/pull/215
return tomllib.load(f) # type: ignore[arg-type]
return tomllib.load(f)
return {}


Expand Down

0 comments on commit 67564b2

Please sign in to comment.