2 Star 0 Fork 0

mirrors_opencv/openvino_training_extensions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
default_language_version:
node: 16.15.0
ruby: 2.7.2
repos:
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.6.1"
hooks:
- id: mypy
files: '^(src/otx)/.*\.py'
additional_dependencies:
[
types-PyYAML,
attrs==21.2.*,
types-requests,
types-Deprecated,
types-docutils,
types_futures,
types-setuptools,
types-python-dateutil,
tokenize-rt==3.2.0,
]
args: [--disallow-untyped-calls]
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.3
hooks:
- id: hadolint
name: Lint Dockerfiles
description: Runs hadolint to lint Dockerfiles
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck # TODO remove this when all shell scripts have been removed from otx
# markdown linting
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
args: [--config=.markdownlint.yaml]
# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.2"
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_opencv/openvino_training_extensions.git
git@gitee.com:mirrors_opencv/openvino_training_extensions.git
mirrors_opencv
openvino_training_extensions
openvino_training_extensions
develop

搜索帮助