2020-05-28 18:53:42 -07:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-19 11:23:01 -07:00
|
|
|
rev: v4.5.0
|
2020-05-28 18:53:42 -07:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-yaml
|
2020-06-08 18:03:33 -07:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
2023-09-05 15:34:38 -07:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
2022-08-26 16:45:01 -07:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2023-10-03 11:34:26 -07:00
|
|
|
rev: v2.2.6
|
2022-08-26 16:45:01 -07:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
exclude: '\.dbc$'
|
|
|
|
args:
|
|
|
|
- --check-hidden
|
|
|
|
- --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
|
2020-05-28 18:53:42 -07:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-12-26 18:30:40 -08:00
|
|
|
rev: v1.8.0
|
2020-05-28 18:53:42 -07:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2023-08-07 15:26:46 -07:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-12-26 18:30:40 -08:00
|
|
|
rev: v0.1.9
|
2020-05-28 18:53:42 -07:00
|
|
|
hooks:
|
2023-08-07 15:26:46 -07:00
|
|
|
- id: ruff
|
2023-06-14 07:55:49 -07:00
|
|
|
- repo: https://github.com/MarcoGorelli/cython-lint
|
2023-11-28 14:21:51 -08:00
|
|
|
rev: v0.16.0
|
2023-06-14 07:55:49 -07:00
|
|
|
hooks:
|
|
|
|
- id: cython-lint
|
|
|
|
- id: double-quote-cython-strings
|
2022-12-31 16: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-24 11:32:13 -07: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-08 18:03:33 -07:00
|
|
|
- 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++
|
2020-06-08 18:03:33 -07:00
|
|
|
- --force
|
|
|
|
- --quiet
|
|
|
|
- -j4
|
2022-08-20 21:35:51 -07:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: generator
|
|
|
|
name: dbc generator
|
|
|
|
entry: generator/test_generator.py
|
|
|
|
language: script
|
|
|
|
pass_filenames: false
|