Skip to content

Commit

Permalink
Use numpy convention for docstring checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Sep 7, 2018
1 parent b83c5f8 commit ccc5b9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .prospector.yml
Expand Up @@ -16,13 +16,7 @@ pep8:
full: true

pep257:
# see http://pep257.readthedocs.io/en/latest/error_codes.html
disable: [
# For short descriptions it makes sense not to end with a period:
D400, # First line should end with a period
# Disable because not part of PEP257 official convention:
D203, # 1 blank line required before class docstring
D212, # Multi-line docstring summary should start at the first line
D213, # Multi-line docstring summary should start at the second line
D404, # First word of the docstring should not be This
]
# disable rules that are allowed by the numpy convention
# see https://github.com/PyCQA/pydocstyle/blob/master/src/pydocstyle/violations.py
# and http://pydocstyle.readthedocs.io/en/latest/error_codes.html
disable: ['D107', 'D203', 'D212', 'D213', 'D402', 'D413']
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -3,3 +3,6 @@ source-dir = doc/sphinx/source
build-dir = doc/sphinx/build
all_files = 1
builder = html

[pydocstyle]
convention = numpy

0 comments on commit ccc5b9f

Please sign in to comment.