Skip to content

Commit

Permalink
refactor(pre-commit): switch docstring linter to pydoclint
Browse files Browse the repository at this point in the history
- Replaced darglint with pydoclint for docstring linting in the pre-commit configuration.
- Updated pydoclint to version 0.3.8 and adjusted its configuration to use `pyproject.toml`.
- Removed darglint configuration and its version pinning.

This change aims to improve the linting process by utilizing pydoclint, which may offer better support or features that align more closely with the project's needs.
  • Loading branch information
ericmjl committed Apr 8, 2024
1 parent da8236d commit 23a38b3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ repos:
hooks:
- id: interrogate
args: [-c, pyproject.toml]
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
- repo: https://github.com/jsh9/pydoclint
rev: 0.3.8
hooks:
- id: darglint
args: [-v 2] # this config makes the error messages a bit less cryptic.
- id: pydoclint
args:
- "--config=pyproject.toml"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.287
Expand Down

0 comments on commit 23a38b3

Please sign in to comment.