47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
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
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: master
|
|
hooks:
|
|
- id: mypy
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)/'
|
|
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs']
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: master
|
|
hooks:
|
|
- id: flake8
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)|(selfdrive/debug)/'
|
|
args:
|
|
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
|
|
- --max-line-length=240
|
|
- --statistics
|
|
- repo: local
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint
|
|
entry: pylint
|
|
language: system
|
|
types: [python]
|
|
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(laika_repo)|(rednose_repo)/'
|
|
- repo: local
|
|
hooks:
|
|
- id: cppcheck
|
|
name: cppcheck
|
|
entry: cppcheck
|
|
language: system
|
|
types: [c++]
|
|
exclude: '^(phonelibs)|(external)|(cereal)|(opendbc)|(panda)|(tools)|(selfdrive/modeld/thneed/debug)|(selfdrive/modeld/test)|(selfdrive/camerad/test)/'
|
|
args:
|
|
- --error-exitcode=1
|
|
- --quiet
|
|
- --force
|
|
- -j8
|