Skip to content

Instantly share code, notes, and snippets.

@efimk-lu
Last active April 3, 2019 13:36
Show Gist options
  • Save efimk-lu/67535ebcac65f13cb96c23d87c8d4335 to your computer and use it in GitHub Desktop.
Save efimk-lu/67535ebcac65f13cb96c23d87c8d4335 to your computer and use it in GitHub Desktop.
Pre-commit hooks
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.660
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: flake8
args: ["--ignore","E501"]
#!/usr/bin/env bash
set -eo pipefail
pre-commit run -a
pytest --all src/test -p no:warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment