Skip to content

Commit

Permalink
Merge pull request #13 from rtfd/humitos/prospector/missing-docstring
Browse files Browse the repository at this point in the history
Ignore missing docstrings in public module/class/method
  • Loading branch information
agjohnson authored Jul 10, 2018
2 parents a8f2c50 + 365955d commit ae89229
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions prospector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pep8:

pylint:
options:
docstring-min-length: 20
dummy-variables-rgx: '_$|__$|dummy'
max-line-length: 100
disable:
Expand All @@ -34,6 +35,15 @@ mccabe:
pep257:
run: true
disable:
# These ones are ignored because the `missing-docstring` is checked
# by `pylint` and it has an option called `docstring-min-length`
# which is set to 20. So, methods that are < 20 lines do not
# require docstring. In this case, `pep257` will fail because it
# will say the docstring is required.
- D100 # Missing docstring in public module
- D101 # Missing docstring in public class
- D102 # Missing docstring in public method

- D105
- D211
- D104
Expand Down

0 comments on commit ae89229

Please sign in to comment.