Skip to content

Commit

Permalink
Inline constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr authored Jan 20, 2025
1 parent 31ac868 commit 0786f72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sync_pre_commit_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import ruamel.yaml

REPOS_WITHOUT_REV = frozenset(('local', 'meta'))
SUPPORTED = frozenset(('black', 'flake8', 'mypy'))


Expand Down Expand Up @@ -54,7 +53,7 @@ def main(argv: Sequence[str] | None = None) -> int:
# TODO - validate schema?
versions = {}
for repo in loaded['repos']:
if repo['repo'] not in REPOS_WITHOUT_REV:
if repo['repo'] not in ('local', 'meta'):
for hook in repo['hooks']:
if (hid := hook['id']) in SUPPORTED:
# `mirrors-mypy` uses versions with a 'v' prefix, so we
Expand Down

0 comments on commit 0786f72

Please sign in to comment.