Skip to content

Commit

Permalink
Update src/compwa_policy/check_dev_files/prettier.py
Browse files Browse the repository at this point in the history
Co-authored-by: SVJ_Vitor <[email protected]>
  • Loading branch information
redeboer and shenvitor authored Sep 5, 2024
1 parent c1ad870 commit af75152
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compwa_policy/check_dev_files/prettier.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def __remove_prettierrc() -> None:


def _update_prettier_hook(precommit: ModifiablePrecommit) -> None:
repo = precommit.find_repo(r".*/mirrors-prettier$")
if repo is None:
repo = precommit.find_repo(r".*/prettier$")
repo = precommit.find_repo(r".*/(mirrors-)?prettier$")
if repo is None:
return
repo["repo"] = "https://github.com/ComPWA/prettier-pre-commit"
Expand Down

0 comments on commit af75152

Please sign in to comment.