Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pre-commit hooks #245

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading