-
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 a little check to make sure the pre-commit hooks ran as expected #502
Conversation
edf43fd
to
17a1da3
Compare
17a1da3
to
afc4810
Compare
afc4810
to
403b4ef
Compare
403b4ef
to
30abd6e
Compare
30abd6e
to
d9dfb6d
Compare
d9dfb6d
to
85c42d2
Compare
85c42d2
to
b1f0782
Compare
b1f0782
to
1f39450
Compare
1f39450
to
713fb30
Compare
713fb30
to
03c3289
Compare
03c3289
to
68d8cab
Compare
I've made this into a comment rather than a failing check, because I've noticed instances where the pre-commit hook doesn't do the right thing. For example, djhtml refuses to process templates/navigation.html, because it contains a long line. This is because the crown logo SVG from the header contains a very long path attribute.
68d8cab
to
0075b08
Compare
Fixing scss/_glossary.scss trim trailing whitespace.................................................Failed
Fixing deployments/templates/deployment.yml black formatting.........................................................Failed
reformatted home/templatetags/snippets.py All done! ✨ 🍰 ✨ flake8 lint..............................................................Failed
home/templatetags/lookup.py:9:90: E501 line too long (98 > 89 characters) Detect secrets...........................................................Failed
ERROR: Potential secrets about to be committed to git repo! Secret Type: Base64 High Entropy String Possible mitigations:
If a secret has already been committed, visit isort (python)...........................................................Failed
Fixing /home/runner/work/find-moj-data/find-moj-data/core/urls.py Sync with Poetry.........................................................Passed
Error: Maximum line length exceeded in templates/base/navigation.html DjCSS....................................................................Passed
reindented static/assets/js/enhanced-glossary.js |
I'm closing this for now as I didn't get this working with staged changes only, and we can't run it against the whole repo while we have non-linted code in the codebase. |
I've made this into a comment rather than a failing check, because I've noticed instances where the pre-commit hook doesn't do the right thing.
For example, djhtml refuses to process templates/navigation.html, because it contains a long line. This is because the crown logo SVG from the header contains a very long path attribute.