openpilot/.pre-commit-config.yaml

48 lines
1.5 KiB
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2021-01-30 17:55:07 -07:00
rev: v3.4.0
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
- repo: https://github.com/pre-commit/mirrors-mypy
2021-01-30 17:55:07 -07:00
rev: v0.800
hooks:
- id: mypy
exclude: '^(pyextra)|(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']
- repo: https://github.com/PyCQA/flake8
2021-01-30 17:55:07 -07:00
rev: 3.8.4
2020-05-27 21:33:05 -06:00
hooks:
- id: flake8
exclude: '^(pyextra)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)|(selfdrive/debug)/'
2020-05-27 21:33:05 -06:00
args:
2020-06-22 15:00:17 -06:00
- --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)|(cereal)|(rednose)|(panda)|(laika)|(laika_repo)|(rednose_repo)/'
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
types: [c++]
exclude: '^(phonelibs)|(cereal)|(opendbc)|(panda)|(tools)|(selfdrive/modeld/thneed/debug)|(selfdrive/modeld/test)|(selfdrive/camerad/test)/|(installer)'
args:
- --error-exitcode=1
2020-07-22 04:10:45 -06:00
- --language=c++
- --quiet
- --force
- -j8