Skip to content

Instantly share code, notes, and snippets.

@ranjanashish
Last active June 23, 2018 16:47
Show Gist options
  • Save ranjanashish/55e3af19ebb400dd6012b268cb122454 to your computer and use it in GitHub Desktop.
Save ranjanashish/55e3af19ebb400dd6012b268cb122454 to your computer and use it in GitHub Desktop.
pre-commit configuration for python projects
repos:
- repo: https://github.com/ambv/black
rev: 18.6b2
hooks:
- id: black
args: [--skip-string-normalization]
language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: double-quote-string-fixer
- id: detect-aws-credentials
- id: detect-private-key
- id: check-merge-conflict
- id: check-ast
- id: flake8
- repo: local
hooks:
- id: pytest
name: pytest
entry: tox
language: python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment