From 7da6a9d48928c736eaabc0a18c445652f820beff Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Sat, 7 Oct 2023 21:13:49 -0400 Subject: [PATCH] feat: update pre-commit hooks and add pydoclint - Updated the version of pre-commit-hooks from v4.4.0 to v4.5.0. - Added pydoclint as an interim replacement for darglint with configuration in pyproject.toml. --- .pre-commit-config.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f38cf075a..0508c2912 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -25,6 +25,14 @@ repos: # hooks: # - id: darglint # args: [-v 2] # this config makes the error messages a bit less cryptic. + + # The interim replacement for darglint is pydoclint. + - repo: https://github.com/jsh9/pydoclint + rev: 0.3.3 + hooks: + - id: pydoclint + args: + - "--config=pyproject.toml" - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.0.292