django:pre-commit
这是本文档旧的修订版!
pre-commit
install
conf
- Bash
- touch .pre-commit-config.yaml
- yaml
- 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: []
/storage/data/attic/django/pre-commit.1758850820.txt.gz · 最后更改: 由 bestony