1 Star 0 Fork 3

王刚克 / Kornia

forked from Gitee 极速下载 / Kornia 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
default_language_version:
python: python3.8
ci:
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
# submodules: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: pretty-format-json
exclude: ^$|.devcontainer
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
args: [--diff]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args:
- --ignore-words-list
- "ans,hist"
- --skip
- "*.bib,*.ipynb"
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.2
hooks:
- id: bandit
name: bandit excluding the test directory
language_version: python3
exclude: ^test/
- id: bandit
name: bandit only the test directory
language_version: python3
files: ^test/
args:
- --skip
- "B101,B311"
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=115, --wrap-descriptions=120]
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
name: Unused noqa
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wang-gangke/Kornia.git
git@gitee.com:wang-gangke/Kornia.git
wang-gangke
Kornia
Kornia
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891