diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12c97b9..cf82808 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] @@ -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 @@ -45,7 +45,7 @@ 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) @@ -53,6 +53,7 @@ repos: additional_dependencies: - click>=8.1.5 - markdown-it-py + - orjson - pytest - rich - tomli @@ -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 diff --git a/src/repo_review/fixtures.py b/src/repo_review/fixtures.py index ac2839f..18219de 100644 --- a/src/repo_review/fixtures.py +++ b/src/repo_review/fixtures.py @@ -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 {}