-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Release 0.0.2 is failing for me:
sync-pre-commit-deps.....................................................Failed
- hook id: sync-pre-commit-deps
- exit code: 1
Traceback (most recent call last):
File "/Users/jace/.cache/pre-commit/repoluscuez_/py_env-python3/bin/sync-pre-commit-deps", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/jace/.cache/pre-commit/repoluscuez_/py_env-python3/lib/python3.11/site-packages/sync_pre_commit_deps.py", line 60, in main
cleaned_rev = repo['rev'].removeprefix('v')
~~~~^^^^^^^
File "/Users/jace/.cache/pre-commit/repoluscuez_/py_env-python3/lib/python3.11/site-packages/ruamel/yaml/comments.py", line 853, in __getitem__
return ordereddict.__getitem__(self, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'rev'
I have a local repo for mypy as it needs an environment with all deps installed:
- repo: local
hooks:
- id: mypy
name: mypy
entry: .venv/bin/mypypre-commit will not let me add a fake rev tag to it:
An error has occurred: InvalidConfigError:
==> File .pre-commit-config.yaml
==> At Config()
==> At key: repos
==> At Repository(repo='local')
=====> Expected rev to be absent when repo is any of ('local', 'meta'), found rev: 'any'
This error is from the addition of mypy to the supported list in cbe3dd6. I have renamed it to mypy-local as a workaround, but the local repo should be entirely skipped.
Metadata
Metadata
Assignees
Labels
No labels