2020-05-27 21:00:14 -06:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: master
|
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-json
|
|
|
|
- id: check-xml
|
|
|
|
- id: check-yaml
|
2020-06-03 13:54:49 -06:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
2020-05-28 16:05:04 -06:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: master
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2020-06-02 17:29:32 -06:00
|
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)/'
|
2020-06-03 14:47:47 -06:00
|
|
|
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs']
|
2020-05-28 18:45:22 -06:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2020-05-27 21:33:05 -06:00
|
|
|
rev: master
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2020-06-03 17:13:34 -06:00
|
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)|(selfdrive/debug)/'
|
2020-05-27 21:33:05 -06:00
|
|
|
args:
|
2020-06-03 17:13:34 -06:00
|
|
|
- --select=E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
|
|
|
|
- --max-line-length=240
|
2020-05-30 21:14:58 -06:00
|
|
|
- --statistics
|
2020-05-27 21:00:14 -06:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
2020-05-28 16:40:48 -06:00
|
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(laika_repo)|(rednose_repo)/'
|