Skip to content

Commit

Permalink
Add darglint for docstring lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Oct 7, 2021
1 parent f4638af commit dcf0504
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
; W503/504: We break lines before binary operators (Knuth's style)

[flake8]
hang-closing = true
ignore = E128,E251,F403,F405,E501,W503,W504
in-place = true
rst-roles = any, class, exc, meth, obj
rst-directives = attribute
hang-closing = true
extend-ignore = D
ignore = E128,E251,F403,F405,E501,W503,W504
in-place = true
rst-directives = attribute
rst-roles = any, class, exc, meth, obj
strictness = short

[tool:pytest]
addopts = --showlocals --doctest-modules --disable-pytest-warnings
testpaths = tests
python_files = **/*.py
addopts = --showlocals --doctest-modules --disable-pytest-warnings
testpaths = tests
python_files = **/*.py

[mypy]
ignore_missing_imports = True
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

dev_requirements = [
'autopep8 >= 1.4.0, < 1.6.0',
'darglint == 1.8.0',
'flake8 >= 3.9.0, < 4.0.0',
'flake8-bugbear >= 19.3.0, < 20.0.0',
'flake8-print >= 3.1.0, < 4.0.0',
Expand Down

0 comments on commit dcf0504

Please sign in to comment.