2020-05-29 09:53:42 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-20 02:23:01 +08:00
|
|
|
rev: v4.5.0
|
2020-05-29 09:53:42 +08:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-yaml
|
2020-06-09 09:03:33 +08:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
2023-09-06 06:34:38 +08:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
2022-08-27 07:45:01 +08:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2024-08-17 13:24:44 +08:00
|
|
|
rev: v2.3.0
|
2022-08-27 07:45:01 +08:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
exclude: '\.dbc$'
|
2020-05-29 09:53:42 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-08-17 13:24:44 +08:00
|
|
|
rev: v1.11.1
|
2020-05-29 09:53:42 +08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2023-08-08 06:26:46 +08:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-08-17 13:24:44 +08:00
|
|
|
rev: v0.5.7
|
2020-05-29 09:53:42 +08:00
|
|
|
hooks:
|
2023-08-08 06:26:46 +08:00
|
|
|
- id: ruff
|
2023-06-14 22:55:49 +08:00
|
|
|
- repo: https://github.com/MarcoGorelli/cython-lint
|
2023-11-29 06:21:51 +08:00
|
|
|
rev: v0.16.0
|
2023-06-14 22:55:49 +08:00
|
|
|
hooks:
|
|
|
|
- id: cython-lint
|
|
|
|
- id: double-quote-cython-strings
|
2023-01-01 08:49:26 +08:00
|
|
|
- repo: https://github.com/cpplint/cpplint
|
|
|
|
rev: 1.6.1
|
|
|
|
hooks:
|
|
|
|
- id: cpplint
|
|
|
|
args:
|
|
|
|
- --quiet
|
|
|
|
- --counting=detailed
|
|
|
|
- --linelength=240
|
2023-08-25 02:32:13 +08:00
|
|
|
- --filter=-build,-legal,-readability,-runtime,-whitespace,+build/include_subdir,+build/forward_decl,+build/include_what_you_use,+build/deprecated,+whitespace/comma,+whitespace/line_length,+whitespace/empty_if_body,+whitespace/empty_loop_body,+whitespace/empty_conditional_body,+whitespace/forcolon,+whitespace/parens,+whitespace/semicolon,+whitespace/tab,+readability/braces
|
2020-06-09 09:03:33 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: cppcheck
|
|
|
|
name: cppcheck
|
|
|
|
entry: cppcheck
|
|
|
|
language: system
|
|
|
|
types: [c++]
|
|
|
|
args:
|
|
|
|
- --error-exitcode=1
|
2020-10-30 04:53:48 +08:00
|
|
|
- --language=c++
|
2024-06-05 02:31:42 +08:00
|
|
|
- --inline-suppr
|
2020-06-09 09:03:33 +08:00
|
|
|
- --force
|
|
|
|
- --quiet
|
|
|
|
- -j4
|
2022-08-21 12:35:51 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: generator
|
|
|
|
name: dbc generator
|
2024-08-01 13:46:43 +08:00
|
|
|
entry: opendbc/dbc/generator/test_generator.py
|
2022-08-21 12:35:51 +08:00
|
|
|
language: script
|
|
|
|
pass_filenames: false
|