2018-07-13 16:37:53 +02:00
|
|
|
repos:
|
2017-03-22 14:11:16 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-01-13 23:20:21 +01:00
|
|
|
rev: v3.4.0
|
2017-03-22 14:11:16 +01:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-merge-conflict
|
2018-07-13 16:37:53 +02:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2021-01-13 23:49:26 +01:00
|
|
|
rev: v2.0.2
|
2018-07-13 16:37:53 +02:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
2021-01-13 23:20:21 +01:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
|
|
rev: 3.8.4
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
name: Check project styling
|
|
|
|
args:
|
|
|
|
- --max-line-length=160
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.7.0
|
2017-07-13 19:30:21 +02:00
|
|
|
hooks:
|
2021-01-13 23:20:21 +01:00
|
|
|
- id: isort
|
|
|
|
name: Sort python imports (shows diff)
|
|
|
|
args: ["-c", "--diff"]
|
|
|
|
- id: isort
|
|
|
|
name: Sort python imports (fixes files)
|