|
|
@ -34,11 +34,31 @@ repos: |
|
|
|
types: [python] |
|
|
|
types: [python] |
|
|
|
args: ['--explicit-package-bases'] |
|
|
|
args: ['--explicit-package-bases'] |
|
|
|
exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)' |
|
|
|
exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)' |
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit |
|
|
|
- repo: https://github.com/PyCQA/flake8 |
|
|
|
rev: v0.0.282 |
|
|
|
rev: 6.1.0 |
|
|
|
hooks: |
|
|
|
hooks: |
|
|
|
- id: ruff |
|
|
|
- id: flake8 |
|
|
|
exclude: '^(third_party/)|(cereal/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)|(installer/)|(tinygrad_repo/)' |
|
|
|
exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(selfdrive/debug/)/' |
|
|
|
|
|
|
|
additional_dependencies: ['flake8-no-implicit-concat'] |
|
|
|
|
|
|
|
args: |
|
|
|
|
|
|
|
- --indent-size=2 |
|
|
|
|
|
|
|
- --enable-extensions=NIC |
|
|
|
|
|
|
|
- --select=F,E112,E113,E304,E502,E701,E702,E703,E71,E72,E731,W191,W6 |
|
|
|
|
|
|
|
- --statistics |
|
|
|
|
|
|
|
- -j4 |
|
|
|
|
|
|
|
- repo: local |
|
|
|
|
|
|
|
hooks: |
|
|
|
|
|
|
|
- id: pylint |
|
|
|
|
|
|
|
name: pylint |
|
|
|
|
|
|
|
entry: pylint |
|
|
|
|
|
|
|
language: system |
|
|
|
|
|
|
|
types: [python] |
|
|
|
|
|
|
|
exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)' |
|
|
|
|
|
|
|
args: |
|
|
|
|
|
|
|
- -j0 |
|
|
|
|
|
|
|
- -rn |
|
|
|
|
|
|
|
- -sn |
|
|
|
|
|
|
|
- --rcfile=.pylintrc |
|
|
|
- repo: local |
|
|
|
- repo: local |
|
|
|
hooks: |
|
|
|
hooks: |
|
|
|
- id: cppcheck |
|
|
|
- id: cppcheck |
|
|
|