Add pre-commit hooks
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 19.10b0
|
||||
hooks:
|
||||
- id: black
|
||||
args:
|
||||
- --safe
|
||||
- --quiet
|
||||
files: ^((blinkpy|tests)/.+)?[^/]+\.py$
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.8.1
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- flake8-docstrings==1.5.0
|
||||
- pydocstyle==5.0.2
|
||||
files: ^(homeassistant|tests)/.+\.py$
|
||||
@@ -2,6 +2,7 @@ black==19.10b0
|
||||
coverage==5.1
|
||||
flake8==3.8.1
|
||||
flake8-docstrings==1.5.0
|
||||
pre-commit==2.4.0
|
||||
pylint==2.5.2
|
||||
pydocstyle==5.0.2
|
||||
pytest==5.4.1
|
||||
@@ -9,4 +10,4 @@ pytest-cov==2.8.1
|
||||
pytest-sugar==0.9.3
|
||||
pytest-timeout==1.3.4
|
||||
restructuredtext-lint==1.3.0
|
||||
pygments==2.6.1
|
||||
pygments==2.6.1
|
||||
|
||||
Reference in New Issue
Block a user