diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0b9553a..a2978a17 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: additional_dependencies: [black==23.*] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.2" + rev: "v0.1.3" hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index 36cf9157..8991298f 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -134,8 +134,9 @@ look like Black, but run 30x faster. Here is the snippet to add Black to your ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.0" + rev: "v0.1.3" hooks: + # id: ruff would go here if using both - id: ruff-format ``` diff --git a/src/sp_repo_review/checks/ruff.py b/src/sp_repo_review/checks/ruff.py index 2b57fff0..66aed579 100644 --- a/src/sp_repo_review/checks/ruff.py +++ b/src/sp_repo_review/checks/ruff.py @@ -219,6 +219,9 @@ def iter_check(ruff: dict[str, Any]) -> Generator[str, None, None]: "unfixable", } +# exclude isn't the same - outer exclude avoids loading config files, so it +# might be desired. + class RF202(RF2xx): "Use (new) lint config section"