From 67564b27a6e42478916e9eb6b0b7b6ac606ef455 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:40:18 -0500 Subject: [PATCH] chore(deps): update pre-commit hooks (#245) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update pre-commit hooks updates: - [github.com/adamchainz/blacken-docs: 1.18.0 → 1.19.1](https://github.com/adamchainz/blacken-docs/compare/1.18.0...1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.7.2) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0) - [github.com/henryiii/validate-pyproject-schema-store: 2024.08.26 → 2024.10.21](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.08.26...2024.10.21) - [github.com/python-jsonschema/check-jsonschema: 0.29.2 → 0.29.4](https://github.com/python-jsonschema/check-jsonschema/compare/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 --- .pre-commit-config.yaml | 13 +++++++------ src/repo_review/fixtures.py | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) 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 {}