代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。