Skip to content

Commit a5d7868

Browse files
authored
Switch from darglint to pydoclint (#232)
1 parent 7148803 commit a5d7868

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.darglint

Lines changed: 0 additions & 7 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,21 @@ repos:
5757
- id: cspell
5858
name: Spell check with cspell
5959

60-
# untill ruff has parity with darglint
6160
- repo: https://github.com/PyCQA/flake8.git
6261
rev: 6.1.0
6362
hooks:
6463
- id: flake8
6564
language_version: python3
6665
additional_dependencies:
67-
- darglint
6866
- flake8-docstrings
6967

68+
- repo: https://github.com/jsh9/pydoclint
69+
rev: 0.3.4
70+
hooks:
71+
- id: pydoclint
72+
args:
73+
- "--config=pyproject.toml"
74+
7075
- repo: https://github.com/pycqa/pylint.git
7176
rev: v3.0.1
7277
hooks:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ write_to = "src/tox_ansible/_version.py"
5151
[tool.black]
5252
line-length = 100
5353

54+
[tool.pydoclint]
55+
allow-init-docstring = true
56+
arg-type-hints-in-docstring = false
57+
check-return-types = false
58+
style = 'google'
59+
5460
[tool.pylint]
5561

5662
[tool.pylint.format]

0 commit comments

Comments
 (0)