AP_TECS: Remove duplicate setting of flare pitch upper limit
[ardupilot.git] / .pre-commit-config.yaml
blob9c8f9d021c277bf2042a5b5bdaf5aa4fa7dd1d41
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
8 exclude: |
9   (?x)(
10   ^modules/ |
11   ^build/ |
12   ^cmake-build-debug/ |
13   \.m |
14   ^libraries/AP_HAL_ChibiOS/hwdef/scripts/
15   )
17 repos:
18   -   repo: https://github.com/pre-commit/pre-commit-hooks
19       rev: v4.2.0
20       hooks:
21         #-   id: trailing-whitespace
22         #-   id: end-of-file-fixer
23         -   id: mixed-line-ending
24             name: Check line ending character (LF)
25             args: ["--fix=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
30             exclude: |
31               (?x)^(
32                 .*\/wscript |
33                 wscript
34               )$
35         -   id: check-merge-conflict
36         -   id: check-xml
37         -   id: check-yaml
39 # Use to sort python imports by name and put system import first.
40   -   repo: https://github.com/pycqa/isort
41       rev: 5.10.1
42       hooks:
43         - id: isort
44           args: [--check-only]
45           name: isort (python)
47 # Use to check python typing to show errors.
48   -   repo: https://github.com/pre-commit/mirrors-mypy
49       rev: 'v0.950'
50       hooks:
51         - id: mypy
52           args: [--no-strict-optional, --ignore-missing-imports]
53           additional_dependencies: [types-PyYAML, types-requests]