add test and pre commit hook

This commit is contained in:
cotran 2024-10-16 14:15:13 -07:00
parent cf612409f0
commit ee36e403d1
9 changed files with 351 additions and 7 deletions

View file

@ -25,6 +25,11 @@ repos:
# --lib is to only test the library, since when integration tests are made,
# they will be in a seperate tests directory
entry: bash -c "cd arch && cargo test -p intelligent-prompt-gateway --lib"
- id: python-tests
name: Run Python Tests with pytest
language: system
entry: bash -c "cd model_server && pytest --maxfail=5 --disable-warnings"
types: [python]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks: