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]: