Skip to content

Instantly share code, notes, and snippets.

@uasau
Forked from guptarohit/.pre-commit-config.yaml
Created February 1, 2020 11:51
Show Gist options
  • Save uasau/5b0816aa738851fbdcca8f4d0e459010 to your computer and use it in GitHub Desktop.
Save uasau/5b0816aa738851fbdcca8f4d0e459010 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