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 hook script #613

Merged
merged 1 commit into from
Jun 6, 2022
Merged

Add pre-commit hook script #613

merged 1 commit into from
Jun 6, 2022

Conversation

nicolasbock
Copy link
Collaborator

The pre-commit hook script needs to be copied locally to:

$ cp scripts/pre-commit .git/hooks/pre-commit

It will run the linter before committing.

Since the linter takes a while to complete, it can be helpful to disable
this check if desired. Adding the --no-verify command line option to
git commit will do that:

$ git commit --no-verify [options]

Signed-off-by: Nicolas Bock [email protected]

The pre-commit hook script needs to be copied locally to:

  $ cp scripts/pre-commit .git/hooks/pre-commit

It will run the linter before committing.

Since the linter takes a while to complete, it can be helpful to disable
this check if desired. Adding the `--no-verify` command line option to
`git commit` will do that:

  $ git commit --no-verify [options]

Note that for reasons of reproducibility the linter runs inside a docker
container. Therefore, the only pre-requisite for the hook is docker.

Signed-off-by: Nicolas Bock <[email protected]>
@nicolasbock nicolasbock merged commit f9bc9f7 into lanl:master Jun 6, 2022
@nicolasbock nicolasbock deleted the hooks branch June 6, 2022 20:18
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