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 the repo #93

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

bbockelm
Copy link
Collaborator

@bbockelm bbockelm commented Sep 2, 2023

This introduces pre-commit configurations to run golangci before any commits occur. Goal is to decrease the number of "fixup linter" type commit messages in the repo.

Fixes #83

bbockelm and others added 2 commits September 2, 2023 09:23
This introduces pre-commit configurations to run golangci before any
commits occur.  Goal is to decrease the number of "fixup linter"
type commit messages in the repo.
Yaml files with multiple `---` separators are considered "multiple-document yaml files." Without the addition of the `--allow-multiple-documents` flag to the check-yaml hook, parsing these will fail.
@jhiemstrawisc
Copy link
Member

@bbockelm I didn't see anyone assigned for review on this, but it would be a nice feature to have at this point. I tested and made a small change so that our parameters.yaml doesn't cause pre-commit to fail. I'm going to go ahead and merge, since we aren't enforcing anything yet and running pre-commit is still optional (but recommended). I'll also follow up with a PR that runs pre-commit against the whole repo so that everything gets tidied at least once.

@jhiemstrawisc jhiemstrawisc merged commit ae00643 into PelicanPlatform:main Sep 14, 2023
4 checks passed
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.

Add pre-commit.com workflow to repo
2 participants