From 5e63a312f43230e8efae1ec4b09cc975393cd8ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:57:49 -0500 Subject: [PATCH] chore(deps): update pre-commit hooks (#248) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.1) - [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.1](https://github.com/rbubley/mirrors-prettier/compare/v3.3.3...v3.4.1) - [github.com/henryiii/validate-pyproject-schema-store: 2024.10.21 → 2024.11.25](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.10.21...2024.11.25) - [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.30.0) * style: pre-commit fixes * Update pyproject.toml --------- 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 | 8 ++++---- pyproject.toml | 1 - src/repo_review/__main__.py | 2 +- src/repo_review/checks.py | 2 +- src/repo_review/fixtures.py | 6 +++--- src/repo_review/ghpath.py | 2 +- src/repo_review/processor.py | 2 +- src/repo_review/testing.py | 2 +- 8 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf82808..3b683db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,14 +11,14 @@ repos: additional_dependencies: [black==23.*] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.2" + rev: "v0.8.1" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.3" + rev: "v3.4.1" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] @@ -79,12 +79,12 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.10.21 + rev: 2024.11.25 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/pyproject.toml b/pyproject.toml index ea01b20..ec75e3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -204,7 +204,6 @@ extend-select = [ ] ignore = [ "ISC001", # May collide with formatter - "PT004", # Incorrect check, usefixtures is the correct way to do this "PLR09", # Too many X "PLR2004", # Magic value in comparison ] diff --git a/src/repo_review/__main__.py b/src/repo_review/__main__.py index d9bea0b..8caa797 100644 --- a/src/repo_review/__main__.py +++ b/src/repo_review/__main__.py @@ -34,7 +34,7 @@ from .html import to_html from .processor import Result, as_simple_dict, collect_all, process -__all__ = ["main", "Formats", "Show", "Status"] +__all__ = ["Formats", "Show", "Status", "main"] CODE_THEME = "ansi_light" diff --git a/src/repo_review/checks.py b/src/repo_review/checks.py index 7da2522..0d74c85 100644 --- a/src/repo_review/checks.py +++ b/src/repo_review/checks.py @@ -6,7 +6,7 @@ from .fixtures import apply_fixtures -__all__ = ["Check", "collect_checks", "is_allowed", "get_check_url"] +__all__ = ["Check", "collect_checks", "get_check_url", "is_allowed"] def __dir__() -> list[str]: diff --git a/src/repo_review/fixtures.py b/src/repo_review/fixtures.py index 18219de..2da388a 100644 --- a/src/repo_review/fixtures.py +++ b/src/repo_review/fixtures.py @@ -12,11 +12,11 @@ from .ghpath import EmptyTraversable __all__ = [ - "pyproject", - "list_all", - "compute_fixtures", "apply_fixtures", "collect_fixtures", + "compute_fixtures", + "list_all", + "pyproject", ] diff --git a/src/repo_review/ghpath.py b/src/repo_review/ghpath.py index ec3ac34..30ca20a 100644 --- a/src/repo_review/ghpath.py +++ b/src/repo_review/ghpath.py @@ -14,7 +14,7 @@ from ._compat.importlib.resources.abc import Traversable -__all__ = ["GHPath", "EmptyTraversable"] +__all__ = ["EmptyTraversable", "GHPath"] def __dir__() -> list[str]: diff --git a/src/repo_review/processor.py b/src/repo_review/processor.py index 421fa27..8b0b427 100644 --- a/src/repo_review/processor.py +++ b/src/repo_review/processor.py @@ -30,8 +30,8 @@ "ResultDict", "as_simple_dict", "collect_all", - "process", "md_as_html", + "process", ] diff --git a/src/repo_review/testing.py b/src/repo_review/testing.py index c756aef..6ed2bd0 100644 --- a/src/repo_review/testing.py +++ b/src/repo_review/testing.py @@ -13,7 +13,7 @@ from .fixtures import apply_fixtures from .processor import Result -__all__ = ["toml_loads", "compute_check"] +__all__ = ["compute_check", "toml_loads"] def __dir__() -> list[str]: