Closed DonJayamanne closed 3 years ago
Dug out the documented reason why the hooks where removed ⛏ : https://github.com/microsoft/vscode-python/issues/2012#issuecomment-405372620
And I think we can skip doing pre-commit hooks because we have something called extensions. 😁 Pre-commit hooks are great as a standardized way to help make sure people meet some requirement before sending code to CI. But since we have standardized our tooling all the way up to the editor, we can actually just standardize on VS Code extensions to do the formatting for us and then let CI enforce that requirement as @d3r3kk suggested.
Closing as it was discussed, and the explanation was good enough not to warrant hooks.
It was more than a year ago though, and until your last few PRs formatting was all over the place and not standardized whatsoever.
I think it would be fair to revisit this decision, or at least reopen this issue so that we can discuss it, what do you think? Worst case it gets a big no and we bury it until the team gets a new member 🙃
Creating an issue to address @kimadeline suggestions.
https://github.com/microsoft/vscode-python/pull/9350#issuecomment-570288111
Note: I still use the pre-commit hooks in our extension.
husky
is part of the package.json &.huskyrc.json
is excluded fromgit
in.gitignore
for this reason (so others could continue using it).