24 lines
542 B
YAML
24 lines
542 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: isort
|
|
name: isort
|
|
stages: [commit]
|
|
language: system
|
|
entry: bash -c 'cd daemon && pipenv run isort --atomic -y'
|
|
types: [python]
|
|
|
|
- id: black
|
|
name: black
|
|
stages: [commit]
|
|
language: system
|
|
entry: bash -c 'cd daemon && pipenv run black --exclude ".+_pb2.*.py|doc|build|utm\.py" .'
|
|
types: [python]
|
|
|
|
- id: flake8
|
|
name: flake8
|
|
stages: [commit]
|
|
language: system
|
|
entry: bash -c 'cd daemon && pipenv run flake8'
|
|
types: [python]
|
|
exclude: setup.py
|