Add client pre-commit
This commit is contained in:
parent
2bb105203e
commit
5742ac4790
@ -1,12 +1,22 @@
|
|||||||
repos:
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: overseer-client-yarn-lint
|
||||||
|
name: overseer-client-yarn-lint
|
||||||
|
entry: bash -c 'cd src/overseer_client && exec yarn lint --max-warnings 0'
|
||||||
|
language: system
|
||||||
|
types: [javascript]
|
||||||
|
files: '^src/overseer_client/src/'
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 20.8b1
|
rev: 20.8b1
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
name: overseer-server-black
|
||||||
language_version: python3.9
|
language_version: python3.9
|
||||||
files: '^src/overseer/|^setup.py|^tests/overseer/'
|
files: '^src/overseer/|^setup.py|^tests/overseer/'
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.9.0
|
rev: 3.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
name: overseer-server-flake8
|
||||||
files: '^src/overseer/|^setup.py|^tests/overseer/'
|
files: '^src/overseer/|^setup.py|^tests/overseer/'
|
||||||
|
Loading…
Reference in New Issue
Block a user