add git pre-commit hooks
This commit is contained in:
11
.githooks/pre-commit
Executable file
11
.githooks/pre-commit
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Running tests before commit..."
|
||||||
|
|
||||||
|
# Run your Neovim tests headlessly with Plenary
|
||||||
|
make test || {
|
||||||
|
echo "Tests failed. Commit aborted."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Tests passed. Proceeding with commit."
|
@ -482,6 +482,14 @@ require "dep" {
|
|||||||
- Lazy loading nvim-cmp doesn't work as the external sources don't get reconized
|
- Lazy loading nvim-cmp doesn't work as the external sources don't get reconized
|
||||||
by nvim-cmp when it's loaded.
|
by nvim-cmp when it's loaded.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
When contributing you may choose to run tests before commiting changes, if that
|
||||||
|
is so you may choose to run the following:
|
||||||
|
```sh
|
||||||
|
git config core.hooksPath .githooks
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
dep is licensed under the [MIT License](LICENSE).
|
dep is licensed under the [MIT License](LICENSE).
|
||||||
|
Reference in New Issue
Block a user