EverOS/.pre-commit-config.yaml

32 lines
883 B
YAML

default_language_version:
python: python3.12
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- 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-toml
# Ceiling mirrored by scripts/check_file_sizes.py (a hard CI gate via
# `make lint`). Change both together — a unit test pins them equal.
- id: check-added-large-files
args: [--maxkb=640]
- id: check-merge-conflict
- id: detect-private-key
# Commit message format: gitlint runs in commit-msg stage (no Node required).
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
stages: [commit-msg]