-
Notifications
You must be signed in to change notification settings - Fork 0
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 pre commit #10
Add pre commit #10
Conversation
b4c8acf
to
16deee9
Compare
da81c45
to
3e5825e
Compare
Okay, I'm gonna merge this at some point tomorrow (Thursday, US time) — please provide feedback if you have any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we want to adopt across all pathogen repos? Thoughts on adding the shared pre-commit config to the pathogen-repo-guide?
I'm +1 for standardizing on something like this, and if there's a consensus around that, I think the repo guide would be a good place for it to live. ETA: added to lab meeting agenda as a "stretch goal" question. |
659fe5c
to
767db8d
Compare
My 2¢, grain of salt, and all that, but I despise auto-formatting. Linting: no problem, it's great, more of it please. Auto-formatting: no thanks, always been a worse developer experience for me. If it's better for the group, I guess ok. |
What are you thinking of as "auto-formatting", specifically? I can guess this would include the Personally, 🧂 I'm a fan of a consistent autoformat if only because it removes a whole class of PR feedback, but I can also live without if that's the consensus preference. |
Pausing on this plan while we continue to discuss what should be in the "standard" pre-commit; we may need another meeting session about this, including examining the semi-unstated assumption of a near-universal config... |
Related issue: nextstrain/pathogen-repo-guide#28 |
Keeping things self-contained to Github Actions seems better than introducing a dependency on another third-party service, particularly when the main advantage of that third-party service seems to be automatically correcting things, which is not a feature I'm interested in — this is intended only as a compliance check.
86df70f
to
3e66f86
Compare
* remove snakefmt * remove yamlfmt * remove codespell * remove toml-sort * remove associated configuration All of these are things that are potentially "auto-formatting" code.
3e66f86
to
c5946b4
Compare
Description of proposed changes
Adds
.pre-commit-config.yaml
with a stock ruleset, and documentation around installing and usingpre-commit
to set up local git hooks to ensure commits are linter-clean.Related issue(s)
#9