跳至内容
白宦成的数字花园
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您在这里:
start
»
python
»
precommit
您的足迹:
python:precommit
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== pre-commit ====== ===== install ===== <code copy Bash [enable_line_numbers="true"]>uv add pre-commit</code> <code copy Bash [enable_line_numbers="true"]>uv run pre-commit install</code> ===== conf ===== <code copy Bash [enable_line_numbers="true"]>touch .pre-commit-config.yaml</code> <code copy yaml [enable_line_numbers="true"]> default_install_hook_types: - pre-commit - commit-msg repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.13.2 hooks: - id: ruff-check args: [--fix] - id: ruff-format - repo: https://github.com/compilerla/conventional-pre-commit rev: v4.2.0 hooks: - id: conventional-pre-commit stages: [commit-msg] args: [] </code>
/storage/data/pages/python/precommit.txt
· 最后更改:
2025/10/02 13:00
由
bestony
页面工具
显示页面
过去修订
反向链接
回到顶部