1 Star 0 Fork 0

stark/wiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
David Arnold 提交于 2024-08-14 23:40 +08:00 . chore(pre-commit): use ruff (#261)
exclude: 'node_modules|.git'
default_stages: [commit]
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: "wiki.*"
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
- id: check-yaml
# - id: no-commit-to-branch
# args: ['--branch', 'master']
- id: check-merge-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
name: "Run ruff linter and apply fixes"
args: ["--fix"]
- id: ruff-format
name: "Format Python code"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [javascript]
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
wiki/public/dist/.*|
.*node_modules.*|
.*boilerplate.*|
wiki/www/website_script.js|
wiki/templates/includes/.*|
wiki/public/js/lib/.*
)$
ci:
autoupdate_schedule: weekly
skip: []
submodules: false
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dongbaihua/wiki.git
git@gitee.com:dongbaihua/wiki.git
dongbaihua
wiki
wiki
master

搜索帮助