Skip to content

Instantly share code, notes, and snippets.

@stabacco
Created September 24, 2020 12:20
Show Gist options
  • Save stabacco/70d2d9e1e4d4e2278c49414ed48eb040 to your computer and use it in GitHub Desktop.
Save stabacco/70d2d9e1e4d4e2278c49414ed48eb040 to your computer and use it in GitHub Desktop.
pre-commit.yaml
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.780
hooks:
- id: mypy
- repo: https://github.com/PyCQA/isort
rev: 5.5.0
hooks:
- id: isort
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/myint/docformatter
rev: v1.3.1
hooks:
- id: docformatter
args: [--in-place]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
args: [--max-line-length=90, --max-doc-length=90]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment