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