加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 917 Bytes
一键复制 编辑 原始数据 按行查看 历史
晚兮 提交于 2020-12-29 21:12 . update demo (#899)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-symlinks
- id: destroyed-symlinks
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
alias: be
exclude: ^frontend/
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.7.1.1
hooks:
- id: shellcheck
- repo: local
hooks:
- id: fe
name: lint-staged
entry: ./frontend/scripts/lint-staged.sh
language: node
files: ^frontend/
description: lint frontend code by lint-staged
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化