1 Star 1 Fork 0

超维空间科技/ArduPilot-cwkj

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
# See https://pre-commit.com for more information, specially https://pre-commit.com/#pre-commit-run for manual trigger
# Some example useful invocations:
# pre-commit run: this is what pre-commit runs by default when committing. This will run all hooks against currently staged files.
# 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.
# pre-commit run check-executables-have-shebangs: run the check-executables-have-shebangs hook against all staged files.
# Files or directory we want to excude from checking
exclude: |
(?x)(
^modules/ |
^build/ |
^cmake-build-debug/ |
\.m |
^libraries/AP_HAL_ChibiOS/hwdef/scripts/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
#- id: trailing-whitespace
#- id: end-of-file-fixer
- id: mixed-line-ending
name: Check line ending character (LF)
args: ["--fix=lf"]
types_or: [python, c, c++, shell]
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: |
(?x)^(
.*\/wscript |
wscript
)$
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
# Disable isort and mypy temporarily due to config conflicts
# # Use to sort python imports by name and put system import first.
# - repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
# args: [--check-only]
# name: isort (python)
# # Use to check python typing to show errors.
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v0.950'
# hooks:
# - id: mypy
# args: [--no-strict-optional, --ignore-missing-imports]
# additional_dependencies: [types-PyYAML, types-requests]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Mbot_admin/ardu-pilot-cwkj.git
git@gitee.com:Mbot_admin/ardu-pilot-cwkj.git
Mbot_admin
ardu-pilot-cwkj
ArduPilot-cwkj
V1.0

搜索帮助

0d507c66 1850385 C8b1a773 1850385