Skip to content

Instantly share code, notes, and snippets.

@rririanto
Created January 27, 2021 11:56
Show Gist options
  • Save rririanto/fcf4465c5c3eadb03bcada4f4cbda6da to your computer and use it in GitHub Desktop.
Save rririanto/fcf4465c5c3eadb03bcada4f4cbda6da to your computer and use it in GitHub Desktop.
Pre-commits Init
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
args: ['--unsafe']
- id: detect-private-key
- id: forbid-new-submodules
- id: check-json
- id: pretty-format-json
types: [text]
files: \.(json|template)$
args: ["--autofix"]
- id: check-added-large-files
- id: flake8
- repo: git://github.com/CuriousLearner/pre-commit-python-sorter
sha: 5294cde9d51cff119af537e987c30c320e9fbe2f
hooks:
- id: python-import-sorter
args: ['--silent-overwrite']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment