1
0
Fork 0
slidge-whatsapp/.pre-commit-config.yaml

44 lines
1.1 KiB
YAML

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/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fmt
args: [-w]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.275
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/rcmdnk/pyproject-pre-commit
rev: v0.0.15
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$"