/ .pre-commit-config.yaml
.pre-commit-config.yaml
1 # See https://pre-commit.com for more information 2 # See https://pre-commit.com/hooks.html for more hooks 3 default_language_version: 4 python: python3.8 5 repos: 6 - repo: https://github.com/pre-commit/pre-commit-hooks 7 rev: "v4.0.1" 8 hooks: 9 - id: check-added-large-files 10 - id: check-ast 11 - id: check-docstring-first 12 - id: check-yaml 13 - repo: https://github.com/pre-commit/mirrors-mypy 14 rev: "v0.910-1" 15 hooks: 16 - id: mypy 17 - repo: https://github.com/psf/black 18 rev: "21.9b0" 19 hooks: 20 - id: black 21 - repo: https://github.com/PyCQA/flake8 22 rev: "4.0.1" 23 hooks: 24 - id: flake8 25 args: ["--count", "--select=E9,F63,F7,F82", "--show-source", "--statistics"] 26 - id: flake8 27 args: ["--count", "--exit-zero", "--max-complexity=5", "--max-line-length=88", "--ignore=E203", "--statistics"] 28 - repo: https://github.com/codespell-project/codespell 29 rev: v2.1.0 30 hooks: 31 - id: codespell 32 entry: codespell --ignore-words=ignore-spelling-words.txt 33 language: python 34 types: [text]