1 Star 0 Fork 0

杨雪元/pytube

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.1.0
hooks:
- id: pretty-format-json
name: 'Pretty format JSON'
args:
- '--no-sort-keys'
- '--autofix'
- '--indent=2'
- id: trailing-whitespace
name: 'Fix trailing whitespace'
exclude: setup.cfg
- id: end-of-file-fixer
name: 'Fix missing EOF'
exclude: setup.cfg
- id: check-executables-have-shebangs
name: 'Check exeutables for shebangs'
- id: check-merge-conflict
name: 'Check for merge conflict fragments'
- id: check-case-conflict
name: 'Check for filesystem character case conflicts'
- id: detect-private-key
name: 'Check for cleartext private keys stored'
- id: check-json
name: 'Validate JSON'
- id: check-ast
name: 'Check Python abstract syntax tree'
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v1.8.0
hooks:
- id: reorder-python-imports
name: 'Reorder Python imports'
- repo: 'https://github.com/pre-commit/mirrors-autopep8'
rev: ''
hooks:
- id: autopep8
name: 'Pretty format Python'
args:
- '--in-place'
- '--aggressive'
- '--aggressive'
- '--experimental'
- '--remove-all-unused-imports'
- '--ignore-init-module-imports'
- '--remove-unused-variable'
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
name: 'Ruthlessly format Python'
language_version: python3.7
args:
- '--line-length=79'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yang_xueyuan/pytube.git
git@gitee.com:yang_xueyuan/pytube.git
yang_xueyuan
pytube
pytube
master

搜索帮助