Replies: 2 comments
-
Let me confirm I understand your question correctly: You have a Copier template with a file repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py38-plus] You generate a project and this file is then part of the generated project. Now, repos:
- repo: https://github.com/asottile/pyupgrade
- rev: v3.15.1
+ rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py38-plus] What about your Copier template? Do you also update the hook version there prior to running Would you mind sharing the snippet of the merge conflict? |
Beta Was this translation helpful? Give feedback.
-
I totally forgot about this and unfortunately I no longer recall how this was happening! I'm sorry about that and thank you for taking the time to answer. I'm closing it for now. |
Beta Was this translation helpful? Give feedback.
-
When a template has a
pre-commit
config file that is updated independently ofcopier
, applyingcopier update
yields conflicts on the lines that define the hook versions.Is there a way to prevent copier from updating those lines?
Beta Was this translation helpful? Give feedback.
All reactions