-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(pre-commit): add pre-commit
#259
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
89ddaf2
to
e30e1ee
Compare
@myii ready for further testing! |
@dafyddj In progress: https://saltstack-formulas.zulipchat.com/#narrow/stream/239693-CI/topic/pre-commit.2F2020-W39_02. Already completed the first one ( |
@dafyddj After starting that run, I realised we could get even better results by only running the |
@dafyddj Working through the four failures:
So just the two types of problems to resolve. |
saltstack-formulas/postfix-formula#115 @myii fixes for the failures - |
@dafyddj Well, that's embarrassing! I mixed up the two blocks when evaluating the situation and writing the last message: Lines 218 to 222 in c259684
Lines 231 to 233 in c259684
So another victory for Thanks for pushing through all of the fixes and it's nice to see them merged so quickly. I did notice an issue with the So that leaves us with our |
e30e1ee
to
796fb1e
Compare
To summarize our discussion, for now we will stick to the status quo of shellchecking |
@dafyddj All fixed! Now to rerun everything with |
@dafyddj The I haven't had a chance to look through in detail but there are some unexpected violations, which we may need to adjust for (probably fairly simple to fix in the files themselves, though):
|
Pre-requisite for pushing changes across formulas using #259 (`pre-commit`).
* Checked using myii/ssf-formula#259
This PR is held up by #261, which shouldn't take too long to resolve. |
Do we need to add docs for this? |
Do you mean across the formulas? That's not going to be easy, since we're not currently managing the As for this PR, I've got a commit to add to it, to finalise the structure. |
I didn't realise that |
@dafyddj Sure, that file is managed from this repo, so please go ahead and update this PR with the necessary additions. |
796fb1e
to
e53c83b
Compare
Pre-requisite for pushing changes across formulas using #259 (`pre-commit`).
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
@dafyddj All changes pushed across formulas (finally). A couple of things remain:
|
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
* Automated using myii/ssf-formula#259
e53c83b
to
bbd0149
Compare
* Automated using myii/ssf-formula#259
e65dc25
to
506b3bc
Compare
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.
We got there in the end! Thanks for providing this PR, it really helped to get this pre-commit
out there.
🎉 This PR is included in version 1.213.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Completes #259 except for 5 remaining formulas.
# [1.214.0](v1.213.0...v1.214.0) (2020-10-04) ### Features * **pre-commit:** enable/disable `rstcheck` as relevant ([f3a91e8](f3a91e8)), closes [#259](#259)
Making a start on this.
Think rolling this out is best done in stages:
yamllint
files and ignores in.yamllint
yamllint
files and ignores from.yamllint
to.pre-commit-config.yaml
; andshellcheck.exclude_paths
in.pre-commit-config.yaml
Things to resolve in this PR:
start formula by formula?use_single_job_for_linters: false