1
0
Files
ContentAutomation/.pre-commit-config.yaml

51 lines
1.1 KiB
YAML

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: mypy
name: mypy
entry: uv run mypy src tests
language: system
pass_filenames: false
- id: pytest
name: pytest-with-coverage
entry: uv run pytest -q
language: system
pass_filenames: false
stages: [pre-push]