| default_language_version: | |
| python: python3.8 | |
| ci: | |
| autofix_prs: true | |
| autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' | |
| # submodules: true | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v4.0.1 | |
| hooks: | |
| - id: end-of-file-fixer | |
| - id: trailing-whitespace | |
| - id: check-yaml | |
| - id: pretty-format-json | |
| - repo: https://github.com/psf/black | |
| rev: 21.9b0 | |
| hooks: | |
| - id: black | |
| args: [--diff] | |
| - repo: https://github.com/codespell-project/codespell | |
| rev: v2.1.0 | |
| hooks: | |
| - id: codespell | |
| args: | |
| - --ignore-words-list | |
| - "ans,hist" | |
| - --skip | |
| - "*.bib,*.ipynb" | |
| - repo: https://github.com/PyCQA/isort | |
| rev: 5.9.3 | |
| hooks: | |
| - id: isort | |
| - repo: https://github.com/PyCQA/flake8 | |
| rev: 4.0.1 | |
| hooks: | |
| - id: flake8 | |
| - repo: https://github.com/asottile/pyupgrade | |
| rev: v2.29.0 | |
| hooks: | |
| - id: pyupgrade | |
| args: [--py36-plus] | |
| - repo: https://github.com/PyCQA/bandit | |
| rev: 1.7.0 | |
| hooks: | |
| - id: bandit | |
| language_version: python3 | |
| exclude: ^test/ | |
| args: | |
| - -s | |
| - "B404,B602,B603,B607" | |
| - repo: https://github.com/myint/docformatter | |
| rev: v1.4 | |
| hooks: | |
| - id: docformatter | |
| args: [--in-place, --wrap-summaries=115, --wrap-descriptions=120] | |
| - repo: https://github.com/asottile/yesqa | |
| rev: v1.2.3 | |
| hooks: | |
| - id: yesqa | |
| name: Unused noqa | |