Skip to content

Instantly share code, notes, and snippets.

@lucasrcezimbra
Last active May 5, 2021 13:36
Show Gist options
  • Save lucasrcezimbra/26812102e8f8d62eddb4b59bbd1cce01 to your computer and use it in GitHub Desktop.
Save lucasrcezimbra/26812102e8f8d62eddb4b59bbd1cce01 to your computer and use it in GitHub Desktop.
pre-commit
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args: [--branch, master]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.1
hooks:
- id: flake8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
args: [--exclude, tests]
- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
hooks:
- id: isort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment