opendbc/.pre-commit-config.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

2020-05-28 18:53:42 -07:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2021-10-14 13:12:05 -07:00
rev: v4.0.1
2020-05-28 18:53:42 -07:00
hooks:
- id: check-ast
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
2020-05-28 18:53:42 -07:00
- repo: https://github.com/pre-commit/mirrors-mypy
2021-10-14 13:12:05 -07:00
rev: v0.910-1
2020-05-28 18:53:42 -07:00
hooks:
- id: mypy
- repo: https://github.com/PyCQA/flake8
2021-10-14 13:12:05 -07:00
rev: 4.0.1
2020-05-28 18:53:42 -07:00
hooks:
- id: flake8
exclude: 'site_scons/'
2020-05-28 18:53:42 -07:00
args:
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --max-line-length=240
2020-06-01 02:03:03 -07:00
- --statistics
2020-05-28 18:53:42 -07:00
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: 'site_scons/'
2020-05-28 18:53:42 -07:00
args:
2020-06-02 15:14:04 -07: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++]
args:
- --error-exitcode=1
2020-10-29 13:53:48 -07:00
- --language=c++
- --force
- --quiet
- -j4
- repo: local
hooks:
- id: generator
name: dbc generator
entry: generator/test_generator.py
language: script
pass_filenames: false