Add pytest to pre-commit

This commit is contained in:
Shreya 2021-04-19 17:28:40 +05:30
parent 4680193375
commit dc0e155c31
1 changed files with 10 additions and 0 deletions

View File

@ -33,3 +33,13 @@ repos:
hooks:
- id: eslint
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"]
- repo: local
hooks:
- id: pytest
name: pytest
entry: bash -c "cd monkey && pytest"
language: system
pass_filenames: false
# alternatively you could `types: [python]` so it only runs when python files change
# though tests might be invalidated if you were to say change a data file
always_run: true