Skip to content

Commit

Permalink
Add pydoclint to pre-commit config (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianonicolai authored Oct 18, 2023
1 parent 5ae04e4 commit 7bab2bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ repos:
rev: 0.27.0
hooks:
- id: check-github-workflows
- repo: https://github.com/jsh9/pydoclint
rev: 0.3.4
hooks:
- id: pydoclint
args:
- "--config=pyproject.toml"
- repo: https://github.com/pycqa/pylint
rev: v3.0.1
hooks:
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ module = ["ansible.*"]
ignore_missing_imports = true
ignore_errors = true

[tool.pydoclint]
allow-init-docstring = true
arg-type-hints-in-docstring = false
check-return-types = false
style = 'google'

[tool.pylint.MAIN]
extension-pkg-allow-list = ["black.parsing"]

Expand Down

0 comments on commit 7bab2bb

Please # to comment.