1
0
This commit is contained in:
2026-03-30 09:54:38 +00:00
commit 84fc5e4b14
10 changed files with 278 additions and 0 deletions

50
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,50 @@
minimum_pre_commit_version: 4.0.0
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: local
hooks:
- id: black
name: black
entry: uv run black --check --diff
language: system
types_or: [python]
- id: isort
name: isort
entry: uv run isort --check-only --diff
language: system
types_or: [python]
- id: ruff
name: ruff
entry: uv run ruff check
language: system
types_or: [python]
- id: bandit
name: bandit
entry: uv run bandit -q -r src
language: system
pass_filenames: false
- id: ty
name: ty
entry: uv run ty check
language: system
pass_filenames: false
- id: pytest
name: pytest-with-coverage
entry: uv run pytest -q
language: system
pass_filenames: false
stages: [pre-push]