Skip to content

Instantly share code, notes, and snippets.

@androiddrew
Created March 8, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save androiddrew/c72babdd1508d8b343ad724300f1ef20 to your computer and use it in GitHub Desktop.
Save androiddrew/c72babdd1508d8b343ad724300f1ef20 to your computer and use it in GitHub Desktop.
A basic pre-commit config file for python
defualt_stages: [commit, push]
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment