Skip to content

Commit

Permalink
fix: update ruff repo link (#200)
Browse files Browse the repository at this point in the history
* 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.

* fix: we self-check

* fix: one more location

---------

Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
burgholzer and henryiii authored Jul 3, 2023
1 parent 884ef32 commit bdd3d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/sp_repo_review/checks/precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down

0 comments on commit bdd3d34

Please sign in to comment.