You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create a project in a context where there are git pre-commit hooks may fail in case code generated by pyscaffold is not accepted by the hook.
Please provide a minimal, self-contained, and reproducible example.
$ putup myproject
ERROR: 8 E501 line too long (80 > 79 characters)
1 W292 no newline at end of file
>>>> PEP8 failures for'docs/conf.py' [stat=1]
Hi @arnauldvm, thank you very much for reporting this issue.
I did not manage to run your reproducer in a way it shows the errors you reported... What I find weird is that the generated .pre-commit-config.yaml file explicitly excludes docs/conf.py.
Could you please provide the output of the putup command in the verbose mode? (e.g putup myproject --pre-commit -vv)
Description of your problem
Trying to create a project in a context where there are git pre-commit hooks may fail in case code generated by pyscaffold is not accepted by the hook.
Please provide a minimal, self-contained, and reproducible example.
Please provide any additional information below.
Workaround I currently use:
$ git config --global core.hooksPath /dev/tools $ putup myproject (...) done! 🐍 🌟 ✨ $ git config --global --unset core.hooksPath
But this is quite uggly.
Suggestion: add a parameter (or env var) to explicitly disable pre-commit (cf.
git commit --no-verify
), or (more generic) to inject arbitrary git parameters.Versions and main components
The text was updated successfully, but these errors were encountered: