From 2cc356e8fdf45c8d0648ac94bab908274267cba3 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 9 Oct 2024 02:21:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Replace=20docformatter=20repo=20?= =?UTF-8?q?with=20PyPI=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is necessary since it uses outdated config format for pre-commit. Refs: * https://github.com/PyCQA/docformatter/pull/287 * https://github.com/PyCQA/docformatter/issues/289 --- .pre-commit-config.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e983a20c8..24d39147f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,12 +51,19 @@ repos: args: - --honor-noqa -- repo: https://github.com/PyCQA/docformatter.git - rev: v1.7.5 +- repo: local hooks: - id: docformatter + name: docformatter + description: Formats docstrings to follow PEP 257. + entry: python -Im docformatter + additional_dependencies: + - docformatter == 1.7.5 args: - --in-place + language: python + types: + - python - repo: https://github.com/hhatto/autopep8.git rev: v2.3.1