cookiecutter-django/{{cookiecutter.project_slug}}/.pre-commit-config.yaml

21 lines
437 B
YAML
Raw Normal View History

exclude: 'docs|node_modules|migrations|.git|.tox'
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: trailing-whitespace
2020-03-17 23:11:16 +03:00
files: (^|/).+\.(py|html|sh|css|js)$
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: python
types: [python]
args: ['--config=setup.cfg']