pre commit - joamatab/dotfiles GitHub Wiki
Pre-commit hook
You can define a precommit hook that runs commands before you git commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: ""
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: ""
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-isort
rev: "" # Use the revision sha / tag you want to point at
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: ""
hooks:
- id: flake8