Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pre-commit config file
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: 18.6b4
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.610-1
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: flake8
args: ["--ignore","E501, W503, E203", "--exclude=00*,manage.py,settings.py"]
#!/usr/bin/env bash
set -e
default_command=( mypy flake8 )
for command in ${@:-"${default_command[@]}"}
do
pre-commit run ${command} --all-files
done
@efi-mk
Copy link
Author

efi-mk commented Sep 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment