Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add additional rules to ignore for pydocstyle (#371)

Madison Swain-Bowden73888740d3a3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 40114ce00..2cbb250b8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -72,10 +72,12 @@ repos:
# Additional ignore reasons:
# D1xx: we do not want to force contributors to write redundant or useless docstrings
# D202: additional whitespace helps with readability
+ # D205: we don't want to always require a single line summary
# D211: same as D202
+ # D400: first line doesn't need to end in a period
# See the following documentation for what each rule does:
# https://www.pydocstyle.org/en/6.2.3/error_codes.html#error-codes
- - --add-ignore=D1,D202,D211
+ - --add-ignore=D1,D202,D205,D211,D400
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.15.0
diff --git a/templates/.pre-commit-config.yaml.jinja b/templates/.pre-commit-config.yaml.jinja
index 33204ea76..e04fb68ea 100644
--- a/templates/.pre-commit-config.yaml.jinja
+++ b/templates/.pre-commit-config.yaml.jinja
@@ -79,10 +79,12 @@ repos:
# Additional ignore reasons:
# D1xx: we do not want to force contributors to write redundant or useless docstrings
# D202: additional whitespace helps with readability
+ # D205: we don't want to always require a single line summary
# D211: same as D202
+ # D400: first line doesn't need to end in a period
# See the following documentation for what each rule does:
# https://www.pydocstyle.org/en/6.2.3/error_codes.html#error-codes
- - --add-ignore=D1,D202,D211
+ - --add-ignore=D1,D202,D205,D211,D400
{% endif %}
{% if contains_js_code | default(true) %}