unicorn_post/.pre-commit-config.yaml

37 lines
929 B
YAML

repos:
- repo: local
hooks:
- id: check_format
name: check_format
entry: poetry format
language: system
pass_filenames: false
types: [python]
files: ^django_app/
- id: check_types
name: check_types
entry: poetry check_types
language: system
pass_filenames: false
types: [python]
files: ^django_app/
- id: check_code
name: check_code
entry: poetry check_code
language: system
pass_filenames: false
types: [python]
files: ^django_app/
- id: test
name: test
entry: poetry test
language: system
pass_filenames: false
types: [python]
files: ^django_app/
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.3.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]