updated pre-commit file to use poetry environment

This commit is contained in:
Blake Harnden 2020-07-11 22:11:23 -07:00
parent ec45d7198b
commit 5c58e99ad4

View file

@ -5,19 +5,19 @@ repos:
name: isort
stages: [commit]
language: system
entry: bash -c 'cd daemon && pipenv run isort --atomic -y'
entry: bash -c 'cd daemon && poetry 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" .'
entry: bash -c 'cd daemon && poetry 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'
entry: bash -c 'cd daemon && poetry run flake8'
types: [python]