opendbc/.pre-commit-config.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

2020-05-28 19:53:42 -06:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: check-ast
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
2020-05-28 19:53:42 -06:00
- repo: https://github.com/pre-commit/mirrors-mypy
rev: master
hooks:
- id: mypy
- repo: https://github.com/PyCQA/flake8
rev: master
hooks:
- id: flake8
exclude: 'site_scons/'
2020-05-28 19:53:42 -06:00
args:
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --max-line-length=240
2020-06-01 03:03:03 -06:00
- --statistics
2020-05-28 19:53:42 -06:00
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: 'site_scons/'
2020-05-28 19:53:42 -06:00
args:
2020-06-02 16:14:04 -06:00
- --disable=C,R,W0613,W0511,W0212,W0201,W0311,W0106,W0603,W0621,W0703,E1136
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
types: [c++]
exclude: 'can/dbc_template.cc'
args:
- --error-exitcode=1
2020-10-29 14:53:48 -06:00
- --language=c++
- --force
- --quiet
- -j4