-
Notifications
You must be signed in to change notification settings - Fork 522
Add pre-commit config #2483
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 config #2483
Conversation
|
Very much of a fan of these. Do they need any local installation? Or do they 'just work'? |
|
Yea you need to install the pre commit package. Should probably add that to the README. |
|
@copilot Add this to the requirements and readme. |
|
@ericholscher I've opened a new pull request, #2491, to work on those changes. Once the pull request is ready, I'll request review from you. |
plaindocs
left a comment
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.
Should probably merge this.
pre-commit run --all-files
Doesn't work imo, but is less important than changed files
99fefc8 to
73c35ec
Compare
- Exclude schema files from check-yaml hook (they use multi-document YAML format) - Exclude schema files from yamllint hook - Fix yamale hooks to properly handle file arguments using bash wrapper - Change yamale hooks to use system language instead of python - Exclude schema files from being validated against themselves This resolves all pre-commit validation errors.
73c35ec to
eadb6a9
Compare
|
@plaindocs Think I have it passing locally now. |
|
📚 Documentation preview 📚: https://writethedocs-www--2483.org.readthedocs.build/