readme / makefile

This commit is contained in:
dexhorthy
2024-08-18 10:11:42 -05:00
parent d2086e0989
commit 56d7c056b7
2 changed files with 26 additions and 0 deletions

View File

@@ -7,3 +7,21 @@ If you're looking to contribute, please:
- add your feature or improvement.
- send a pull request.
- we appreciate your input!
## Running Tests
Before submitting a pull request, please run the tests and linter:
```shell
make check test
```
Right now the linting rules are from an off-the-shelf config, and many rules are still being refined/removed. Well-justified per-file or per-rule ignores are welcome.
You can run
```shell
make githooks
```
to install a git pre-push hook that will run the checks before pushing.

View File

@@ -78,3 +78,11 @@ test-examples:
: 🧠 OpenAI
:
docker compose -f examples/openai_client/docker-compose.yaml run examples
.PHONY: githooks
githooks:
:
: 🚀 Installing pre-push hook
:
echo 'make check test' > .git/hooks/pre-push
chmod +x .git/hooks/pre-push