core-extra/daemon/.pre-commit-config.yaml
2019-09-18 11:39:48 -07:00

44 lines
999 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]
- id: isort-tk
name: coretk-isort
stages: [commit]
language: system
entry: bash -c 'cd coretk && pipenv run isort --atomic -y'
types: [python]
- id: black-tk
name: coretk-black
stages: [commit]
language: system
entry: bash -c 'cd coretk && pipenv run black .'
types: [python]
- id: flake8-tk
name: coretk-flake8
stages: [commit]
language: system
entry: bash -c 'cd coretk && pipenv run flake8'
types: [python]