Skip to content

Instantly share code, notes, and snippets.

@guptarohit
Created November 14, 2019 11:07
Show Gist options
  • Save guptarohit/35f49bc663620d03ca00d2a0ff7429df to your computer and use it in GitHub Desktop.
Save guptarohit/35f49bc663620d03ca00d2a0ff7429df to your computer and use it in GitHub Desktop.
pre-commit hooks pipeline with isort, black and flake8
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment