2026-09-07 23:43:50 +08:00
|
|
|
# First-time setup: pre-commit install
|
|
|
|
|
# Behind a proxy: HTTPS_PROXY=http://<proxy-host>:<port> pre-commit run --all-files
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
|
rev: v0.16.6
|
|
|
|
|
hooks:
|
|
|
|
|
- id: ruff-check
|
|
|
|
|
args: [--fix]
|