Added: CLI option to ignore hooks#992
Conversation
|
I saw the issue #429 about the hooks, and I would be more than happy to update the PR to reflect the outcome of this conversation, but I wanted to show my changes to in order to revive the conversation. |
0fe9f2b to
8db4c2e
Compare
8db4c2e to
47e7878
Compare
|
@michaeljoseph Anything else I could help with to get this PR reviewed? I'm just trying to ensure it does not get forgotten ;) |
216eec2 to
1796f7d
Compare
|
@michaeljoseph Thanks a lot for your review. I updated the PR to address your remarks. |
|
lgtm 🎉 🍪 |
|
Awesome! Can an admin/collaborator merge this PR please? |
|
ping |
|
Can an admin/collaborator merge this PR please? It got the green lights quite some time ago already, there should not be any blockers left. |
|
Apologies, but as our current financing is only at $49 (https://www.patreon.com/hackebrot), it's hard for us to find professional quality time to work on Cookiecutter. However, on my next day off from paid work I'll take a look at this pull request. |
|
I understand. But @michaeljoseph already approved it before, saving you some review time ;) |
|
Hi everyone! Any update regarding this PR? Thanks a lot! |
|
Hello hello! Still no news regarding merging this PR? |
|
I am closing as this was in conflict for a very long time. Ping me to reopen if you rebase it and it pases CI. |
|
Well, if you are thinking of merging it I'll re-update it. |
2c60c21 to
f77a160
Compare
|
@ssbarnea Updated and all green! |
ssbarnea
left a comment
There was a problem hiding this comment.
Something is clearly wrong about the README!!!
36a97e1 to
024a416
Compare
|
I removed the old README.rst!!! However, the CI is not happy about Python 2.7 🤔 Any clue why? I could not see anything interesting in the logs. |
024a416 to
5018209
Compare
|
@ssbarnea Chocolatey is not happy with Python2: The command "choco install python2" failed and exited with 1 during . |
|
Please note #429 is not resolved by disabling hooks. People can still put arbitrary code in jinja templates. Disabling hooks does not improve security. |
|
That's OK, I did not implement it to solve the security concern, but to make it work for a use case. |
In some cases we want to generate the cookiecutters without running the hooks, or ask the user to confirm whether to run them. This patch adds a CLI switch which allows that behavior. The documentation and the unit tests were updated to reflect this change. Drive-by: * Update .gitgnore file * Update tox.ini to add fail fast option to pytest
5018209 to
63872a1
Compare
In some cases we want to generate the cookiecutters without running the
hooks. This patch adds a CLI switch which allows that behavior.
The documentation and the unit tests were updated to reflect this
change.
Drive-by: