Only run Flake8 on changed lines

This commit is contained in:
Justin Mayer 2020-04-30 21:43:31 +02:00
commit c8639fe547

View file

@ -11,12 +11,10 @@ repos:
- id: detect-private-key - id: detect-private-key
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8 - id: flake8
args: [--max-line-length=88] name: Flake8 on commit diff
language_version: python3.7 description: This hook limits Flake8 checks to changed lines of code.
entry: bash
args: [-c, 'git diff HEAD | flake8 --diff --max-line-length=88']
exclude: ^pelican/tests/output/ exclude: ^pelican/tests/output/