Skip to content

Commit

Permalink
feat: update pre-commit hooks and add pydoclint
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ericmjl committed Oct 8, 2023
1 parent c8fd19b commit 7da6a9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7da6a9d

Please sign in to comment.