加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yaman Umuroglu 提交于 2022-05-31 12:15 . update pre-commit config
exclude: '^docs/conf.py'
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
args: [--line-length=125]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
# black-compatible flake-8 config
args: ['--max-line-length=125', # github viewer width
'--extend-ignore=E203'] # E203 is not PEP8 compliant
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化