Add rst linter to pre-commit and fix flake8

This commit is contained in:
Kevin Fronczak
2020-05-28 18:59:37 +00:00
parent cec801c39c
commit 8bc4544eeb
+7 -2
View File
@@ -8,10 +8,15 @@ repos:
- --quiet
files: ^((blinkpy|tests)/.+)?[^/]+\.py$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
rev: 3.8.2
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.0.2
files: ^(homeassistant|tests)/.+\.py$
files: ^(blinkpy|tests)/.+\.py$
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.0
hooks:
- id: rst-linter
files: /.+\.rst$