From d52b8ee359c375374718bd91f19e43e18f7e0552 Mon Sep 17 00:00:00 2001 From: openverse-bot Date: Sun, 29 Jan 2023 00:24:31 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.pre-commit-co?= =?UTF-8?q?nfig.yaml'=20with=20remote=20'templates/.pre-commit-config.yaml?= =?UTF-8?q?.jinja'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89540ab63..4f8c110f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # here will be overwritten. Please make any necessary edits to these files: # - https://github.com/WordPress/openverse/blob/main/.pre-commit-config.yaml.jinja -exclude: Pipfile\.lock|migrations|\.idea|node_modules|archive +exclude: Pipfile\.lock|migrations|\.idea|node_modules|archive|retired repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -62,6 +62,20 @@ repos: args: - --safe + - repo: https://github.com/pycqa/pydocstyle + rev: 6.2.2 # 6.2.3 is slightly broken + hooks: + - id: pydocstyle + args: + - --convention=pep257 + # Additional ignore reasons: + # D1xx: we do not want to force contributors to write redundant or useless docstrings + # D202: additional whitespace helps with readability + # D211: same as D202 + # 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 + # Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements. - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.6.0