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 pre-commit hooks for consistency #8

Merged
merged 5 commits into from
Mar 8, 2024
Merged

Add pre-commit hooks for consistency #8

merged 5 commits into from
Mar 8, 2024

Conversation

olirice
Copy link
Collaborator

@olirice olirice commented Mar 8, 2024

What kind of change does this PR introduce?

Adds pre-commit hooks to verify:

  • spaces vs tabs
  • each lint is contained within lints.sql
  • no larges files are added
  • no mixed line endings
  • no trailing whitespace on each line

The pre-commit hooks are evaluated in CI

Documents that lint.sql contains a single query containing all lints

@olirice olirice requested a review from saltcod March 8, 2024 20:17
@olirice olirice merged commit 052d251 into main Mar 8, 2024
2 checks passed
@olirice olirice deleted the or/pre-commit branch March 8, 2024 20:48
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.

2 participants