Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --staged parameter to pretty-quick pre-commit #617

Merged
merged 3 commits into from
Feb 27, 2020
Merged

Add --staged parameter to pretty-quick pre-commit #617

merged 3 commits into from
Feb 27, 2020

Conversation

dihmeetree
Copy link
Contributor

@dihmeetree dihmeetree commented Feb 27, 2020

This adds a --staged parameter to the pretty-quick pre-commit script, which will make sure only staged files are formatted. Partially staged files will not be re-staged after formatting, and pretty-quick will exit with a non-zero exit code. The intent is to abort the git commit, and allow the user to amend their selective staging to include formatting fixes.

@ghost
Copy link

ghost commented Feb 27, 2020

Congratulations 🍻. DeepCode analyzed your code in 0.268 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


☺️ If you want to provide feedback on our bot, here is how to contact us.

@liyasthomas
Copy link
Member

wow! lot of reviewers! 😅

@dihmeetree
Copy link
Contributor Author

wow! lot of reviewers! 😅

Not sure who's available and such :)

@dihmeetree
Copy link
Contributor Author

dihmeetree commented Feb 27, 2020

@liyasthomas Updated initial PR description. Please re-review and confirm :) Thanks!

@TravisBuddy
Copy link

Hey @dmitryyankowski,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 8632d990-59ba-11ea-822e-0bf67ba4204b

@dihmeetree dihmeetree merged commit ba79828 into hoppscotch:master Feb 27, 2020
@dihmeetree dihmeetree deleted the fix/pretty-quick-stage branch March 1, 2020 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants