1 Star 0 Fork 0

liq07lzucn/wheels_python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
liq07lzucn 提交于 2022-01-23 18:28 . add files
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qiangge_666/wheels_python.git
git@gitee.com:qiangge_666/wheels_python.git
qiangge_666
wheels_python
wheels_python
master

搜索帮助