Skip to content

Commit

Permalink
precommit: add docformatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 7, 2023
1 parent 2e5cd31 commit c18fdca
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -5,34 +5,47 @@ repos:
- id: check-symlinks
- id: destroyed-symlinks
- id: mixed-line-ending
args: [ --fix=lf ]
args: ["--fix=lf"]

- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort

- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
exclude: tests/
args:
- --ignore-words-list="bloaded,nto,pullrequest,pullrequests,thi,tim,wan,Wan,chang,Chang"
- --quiet-level=2
- "--ignore-words-list='bloaded,nto,pullrequest,pullrequests,thi,tim,wan,Wan,chang,Chang'"
- "--quiet-level=2"

- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/PyCQA/docformatter
rev: v1.6.3
hooks:
- id: docformatter
args:
- --py37-plus
- "--in-place"
- "--wrap-summaries=120"
- "--wrap-descriptions=120"

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
Expand Down

0 comments on commit c18fdca

Please sign in to comment.