forked from p15670423/monkey
Add pytest to pre-commit
This commit is contained in:
parent
4680193375
commit
dc0e155c31
|
@ -33,3 +33,13 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"]
|
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
|
||||||
|
|
Loading…
Reference in New Issue