1
0
mirror of https://git.sr.ht/~nicoco/slidge-whatsapp synced 2024-09-28 17:42:46 +00:00
slidge-whatsapp/.pre-commit-config.yaml

38 lines
882 B
YAML
Raw Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
args: [--assume-in-merge]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/rcmdnk/pyproject-pre-commit
rev: v0.0.1
hooks:
- id: isort
- id: black
- id: mypy
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: poetry run pytest tests
language: system
pass_filenames: false
always_run: true
- id: forbidden-files
name: forbidden files
entry: found Copier update rejection files; review them and remove them
language: fail
files: "\\.rej$"