Skip to content

Commit de82ee6

Browse files
committed
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.
1 parent c62f38d commit de82ee6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ repos:
2525
hooks:
2626
- id: flake8
2727
language_version: python3
28-
additional_dependencies: [flake8-typing-imports==1.9.0]
28+
additional_dependencies:
29+
- flake8-typing-imports==1.9.0
30+
- flake8-docstrings==1.5.0
2931
- repo: https://github.com/asottile/reorder_python_imports
3032
rev: v2.3.0
3133
hooks:

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ commands = python scripts/publish-gh-release-notes.py {posargs}
154154

155155
[flake8]
156156
max-line-length = 120
157+
select = E,F,W,C,TYP,D200,D201,D206,D207,D208,D210,D211,D212,D214,D215,D300,D301,D403,D404
157158
extend-ignore = E203
158159

159160
[isort]

0 commit comments

Comments
 (0)