From 65523c001d3815392f7372f199c8ed4f9f758c0c Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Sun, 2 Jul 2023 16:32:50 +0200 Subject: [PATCH 1/3] chore: update ruff repo link Ruff has moved to a proper organization a couple weeks back. While GitHub automatically redirects, it's probably best to update the corresponding check. --- src/sp_repo_review/checks/precommit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_repo_review/checks/precommit.py b/src/sp_repo_review/checks/precommit.py index 10c08adf..b5cb3c1f 100644 --- a/src/sp_repo_review/checks/precommit.py +++ b/src/sp_repo_review/checks/precommit.py @@ -56,7 +56,7 @@ class PC111(PreCommit): class PC190(PreCommit): "Uses Ruff" - repo = "https://github.com/charliermarsh/ruff-pre-commit" + repo = "https://github.com/astral-sh/ruff-pre-commit" class PC140(PreCommit): From ac35a806ecb58bb3fa162a20494abf1fe1717660 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 3 Jul 2023 00:50:48 -0400 Subject: [PATCH 2/3] fix: we self-check --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0700366a..d017474d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: blacken-docs additional_dependencies: [black==23.1.0] - - repo: https://github.com/charliermarsh/ruff-pre-commit + - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.0.270" hooks: - id: ruff From b2f5aa8fa33c3c78e9143c41022ca64738d11d6c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 3 Jul 2023 00:54:35 -0400 Subject: [PATCH 3/3] fix: one more location --- src/sp_repo_review/checks/precommit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_repo_review/checks/precommit.py b/src/sp_repo_review/checks/precommit.py index b5cb3c1f..525a7862 100644 --- a/src/sp_repo_review/checks/precommit.py +++ b/src/sp_repo_review/checks/precommit.py @@ -82,7 +82,7 @@ class PC180(PreCommit): class PC191(PreCommit): "Ruff show fixes if fixes enabled" requires = {"PC190"} - repo = "https://github.com/charliermarsh/ruff-pre-commit" + repo = "https://github.com/astral-sh/ruff-pre-commit" @classmethod def check(cls, precommit: dict[str, Any]) -> bool | None: