Basic env and description

This commit is contained in:
Arkadiusz Jedrzejewski 2026-03-15 17:21:35 +01:00
parent b5261ba0f6
commit 246ef4c829
9 changed files with 237 additions and 163 deletions

37
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,37 @@
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 --check --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]