1 # See https://pre-commit.com for more information, specially https://pre-commit.com/#pre-commit-run for manual trigger
2 # Some example useful invocations:
3 # pre-commit run: this is what pre-commit runs by default when committing. This will run all hooks against currently staged files.
4 # pre-commit run --all-files: run all the hooks against all the files. This is a useful invocation if you are using pre-commit in CI.
5 # pre-commit run check-executables-have-shebangs: run the check-executables-have-shebangs hook against all staged files.
7 # Files or directory we want to excude from checking
14 ^libraries/AP_HAL_ChibiOS/hwdef/scripts/
18 - repo: https://github.com/pre-commit/pre-commit-hooks
21 #- id: trailing-whitespace
22 #- id: end-of-file-fixer
23 - id: mixed-line-ending
24 name: Check line ending character (LF)
26 types_or: [python, c, c++, shell]
27 - id: check-added-large-files
28 - id: check-executables-have-shebangs
29 - id: check-shebang-scripts-are-executable
35 - id: check-merge-conflict
39 # Use to sort python imports by name and put system import first.
40 - repo: https://github.com/pycqa/isort
47 # Use to check python typing to show errors.
48 - repo: https://github.com/pre-commit/mirrors-mypy
52 args: [--no-strict-optional, --ignore-missing-imports]
53 additional_dependencies: [types-PyYAML, types-requests]