2020-02-01 10:14:55 +08:00
|
|
|
exclude: ^tests/data/
|
2019-12-12 21:40:42 +08:00
|
|
|
repos:
|
2020-03-01 15:51:40 +08:00
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
rev: 3.7.9
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2019-12-12 21:40:42 +08:00
|
|
|
- repo: https://github.com/asottile/seed-isort-config
|
2020-03-01 15:51:40 +08:00
|
|
|
rev: v2.1.0
|
2019-12-12 21:40:42 +08:00
|
|
|
hooks:
|
2020-03-01 15:51:40 +08:00
|
|
|
- id: seed-isort-config
|
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
rev: 4.3.21
|
2020-02-02 18:18:17 +08:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2019-12-12 21:40:42 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
|
|
|
rev: v0.29.0
|
|
|
|
hooks:
|
|
|
|
- id: yapf
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2020-03-01 15:51:40 +08:00
|
|
|
rev: v2.5.0
|
2019-12-12 21:40:42 +08:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: requirements-txt-fixer
|
2020-03-01 15:51:40 +08:00
|
|
|
- id: double-quote-string-fixer
|
|
|
|
- id: fix-encoding-pragma
|
|
|
|
args: ["--remove"]
|
2020-04-08 00:04:50 +08:00
|
|
|
- id: mixed-line-ending
|
|
|
|
args: ["--fix=lf"]
|