用户工具

站点工具


django:pre-commit

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
django:pre-commit [2025/09/26 01:40] – [conf] bestonydjango:pre-commit [2025/10/02 13:00] (当前版本) – 移除 bestony
行 1: 行 1:
-====== 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/attic/django/pre-commit.1758850820.txt.gz · 最后更改: bestony

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki