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