default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
args: [ --unsafe ]
- id: debug-statements
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.9.0]
- repo: https://github.com/ikamensh/flynt/
rev: '0.56'
hooks:
- id: flynt
args: [ -df ]
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
hooks:
- id: pyupgrade
args: [ --py3-plus , --py36-plus]