代码拉取完成,页面将自动刷新
repos:
# - repo: git://github.com/pre-commit/pre-commit-hooks
- repo: https://gitee.com/qiangge_666/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: detect-private-key
- repo: https://scm.dazzlingwrench.fxinnovation.com/fxinnovation-public/pre-commit-afcmf
# - repo: https://gitee.com/qiangge_666/mirror_pre-commit-afcmf
rev: 0.1.2
hooks:
- id: afcmf_commit_validation
- repo: https://gitee.com/qiangge_666/markdownlint-cli
rev: v0.30.0
hooks:
- id: markdownlint
args:
- --config=.mdl_config.yaml
- repo: https://gitee.com/mirrors_pre-commit/mirrors-prettier
rev: v2.5.0
hooks:
- id: prettier
- repo: https://gitee.com/qiangge_666/mirror_yamllint
rev: v1.26.3
hooks:
- id: yamllint
args:
- --strict
# pre-commit hooks
# - repo: https://github.com/pre-commit/pre-commit
# rev: v2.15.0
# hooks:
# - id: validate_manifest
# Shell script hooks
- repo: https://gitee.com/qiangge_666/mirror_pre-commit-shfmt
rev: v0.0.2
hooks:
- id: shfmt
args:
# Indent by two spaces
- -i
- "2"
# Binary operators may start a line
- -bn
# Switch cases are indented
- -ci
# Redirect operators are followed by a space
- -sr
- repo: https://gitee.com/qiangge_666/mirror_pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
- repo: https://gitee.com/mirrors_psf/black
rev: 21.9b0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.10.0]
# args: [--config, .flake8]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.7
hooks:
- id: autopep8
# - repo: https://github.com/pre-commit/pre-commit
# rev: v2.15.0
# hooks:
# - id: validate_manifest
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.1
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.1
hooks:
- id: add-trailing-comma
args: [--py36-plus]
# - repo: https://github.com/asottile/setup-cfg-fmt
# rev: v1.20.0
# hooks:
# - id: setup-cfg-fmt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
# additional_dependencies: [types-all]
# exclude: ^testing/resources/
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。