Add pre-commit hooks

This commit is contained in:
Kevin Fronczak
2020-05-17 00:49:13 +00:00
parent baa2b8cd49
commit 0f9301742a
2 changed files with 19 additions and 1 deletions
+17
View File
@@ -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 -1
View File
@@ -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