Enforce some pydocstyle lints with flake8-docstrings

There are some ones we *would* like to enforce, like
    D401 First line should be in imperative mood
but have too many false positives, so I left them out.
This commit is contained in:
Ran Benita
2020-07-18 12:28:44 +03:00
parent b8471aa527
commit 9a18b57c7c
2 changed files with 14 additions and 2 deletions

View File

@@ -25,7 +25,9 @@ repos:
hooks:
- id: flake8
language_version: python3
additional_dependencies: [flake8-typing-imports==1.9.0]
additional_dependencies:
- flake8-typing-imports==1.9.0
- flake8-docstrings==1.5.0
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.0
hooks: