.pre-commit-config.yaml
exclude: "vendor/"
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.3.0 # Possible releases: https://github.com/hadialqattan/pycln/releases
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-toml
- id: check-yaml
- id: check-json
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
files: "\\.(py|txt|yaml|json|md|toml|lock|cfg|html|sh|js|yml)$"
- id: trailing-whitespace
files: "\\.(py|txt|yaml|json|md|toml|lock|cfg|html|sh|js|yml)$"
- id: check-case-conflict
- id: check-docstring-first
- id: check-byte-order-marker
- id: check-added-large-files
- id: check-executables-have-shebangs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.1
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
additional_dependencies: [pep8-naming]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782 # Do not update.
hooks:
- id: mypy
exclude: tests/data/
args: [--config-file=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a4
hooks:
- id: pylint
args: [--rcfile=.pylintrc]