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]
29 libraries/AP_ADSB/AP_ADSB_Sagetech_MXS.cpp |
30 libraries/AP_ADSB/AP_ADSB_Sagetech_MXS.h
32 - id: check-added-large-files
33 - id: check-executables-have-shebangs
34 - id: check-shebang-scripts-are-executable
40 - id: check-merge-conflict
44 - repo: https://github.com/psf/black
50 libraries\/AP_DDS\/(wscript|.*\.py)$ |
54 # # Use to sort python imports by name and put system import first.
55 # - repo: https://github.com/pycqa/isort
59 # args: [--check-only]
60 # name: isort (python)
62 # # Use to check python typing to show errors.
63 # - repo: https://github.com/pre-commit/mirrors-mypy
67 # args: [--no-strict-optional, --ignore-missing-imports]
68 # additional_dependencies: [types-PyYAML, types-requests]