kronos/.pre-commit-config.yaml
Piotr Gaczkowski 2ec156422b feat: Add initial Mobilizon => Discord sync (#1)
Closes #2 , #3

Co-authored-by: Piotr Gaczkowski <DoomHammerNG@gmail.com>
Reviewed-on: #1
Reviewed-by: leming leming <leming@hs3.pl>
2026-04-20 18:42:04 +00:00

37 lines
1 KiB
YAML

default_stages: [pre-commit, pre-push]
repos:
- repo: local
hooks:
- id: trailing-whitespace
name: Trim trailing space
entry: trailing-whitespace-fixer
language: system
types: [file, text]
- id: end-of-file-fixer
name: Fix end of files
description: Ensures that a file is either empty, or ends with one newline.
entry: end-of-file-fixer
language: system
types: [file, text]
- id: check-merge-conflict
name: Check for merge conflicts
description: Check for files that contain merge conflict strings.
entry: check-merge-conflict
language: system
types: [file, text]
- id: ruff-format
name: Ruff format
description: Format.
entry: ruff format --config pyproject.toml
language: system
types: [python]
- id: ruff-lint
name: Ruff linter
description: Lint.
entry: ruff check --force-exclude --config pyproject.toml
language: system
types: [python]