Skip to content

Commit

Permalink
precommit: enable docformatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 1, 2023
1 parent 38f03b2 commit 2c298fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ repos:
additional_dependencies: [tomli]
#args: ["--write-changes"] # uncomment if you want to get automatic fixing

#- repo: https://github.com/PyCQA/docformatter
# rev: v1.5.1
# hooks:
# - id: docformatter
# args: [--in-place]
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place]

- repo: https://github.com/psf/black
rev: 23.3.0
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ quiet-level = 3
#ignore-words-list = ""


[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true


[tool.black]
# https://github.com/psf/black
line-length = 120
Expand Down

0 comments on commit 2c298fd

Please sign in to comment.