summaryrefslogtreecommitdiff
path: root/.pydocstyle
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-03-27 14:30:46 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-04-05 14:41:58 -0400
commitc50c68fef179d9306f1a3432f48985bf20555e38 (patch)
treea1c208329a090c54a8a1f02558b2be87b830a8ab /.pydocstyle
parenta5dacf7092f51055dd774a1911a48815bb9a1e0e (diff)
downloadmongo-c50c68fef179d9306f1a3432f48985bf20555e38.tar.gz
SERVER-23312 Python linting - Lint using pylint, pydocstyle & mypy
Diffstat (limited to '.pydocstyle')
-rw-r--r--.pydocstyle12
1 files changed, 12 insertions, 0 deletions
diff --git a/.pydocstyle b/.pydocstyle
new file mode 100644
index 00000000000..dc8da3eaf1f
--- /dev/null
+++ b/.pydocstyle
@@ -0,0 +1,12 @@
+# See https://readthedocs.org/projects/pydocstyle/
+[pydocstyle]
+inherit = false
+# D105 - Missing docstring in magic method
+# D202 - No blank lines allowed after function docstring
+# 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
+# D301 - Use r""" if any backslashes in a docstring
+ignore = D105,D202,D203,D212,D213,D301
+# Do not run on buildscripts/tests/
+match = ^((?!buildscripts\/tests\/).)*$