用户工具

站点工具


django:pre-commit

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
django:pre-commit [2025/08/20 14:47] 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 yaml [enable_line_numbers="true"]> 
-# See https://pre-commit.com for more information 
-# See https://pre-commit.com/hooks.html for more hooks 
-repos: 
--   repo: https://github.com/pre-commit/pre-commit-hooks 
-    rev: v3.2.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.12.9 
-  hooks: 
-    # Run the linter. 
-    - id: ruff-check 
-      args: [ --fix ] 
-    # Run the formatter. 
-    - id: ruff-format 
- 
-</code> 
/storage/data/attic/django/pre-commit.1755701277.txt.gz · 最后更改: bestony

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki