Getting started (as a beginner) #11
-
I am probably missing something really obvious (I am a beginning programmer), but I can not get sync_with_poetry to work:
On purpose I left the black rev out-of-sync with my poetry.lock file: excerpt from .pre-commit-config.yaml
excerpt from poetry.lock file
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is no longer an issue, I thought that sync_with_poetry would also run on changes to ".pre-commit-config.yaml", but I now understand it only runs after committing poetry.lock. |
Beta Was this translation helpful? Give feedback.
-
Hi @davidsampimon, this hook updates the rev of each repo in |
Beta Was this translation helpful? Give feedback.
Hi @davidsampimon, this hook updates the rev of each repo in
.pre-commit-config.yaml
with the corresponding package version stored inpoetry.lock
. If you run it withlanguage: system
, you try to run a version ofsync_with_poetry
installed on your local system. You need to install it manually (but usually you shouldn't rely on local executables!).