-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
24 lines (24 loc) · 892 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
24 lines (24 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- id: check-untracked-migrations
name: Untracked Django migrations checker
description: "Forbid untracked Django migrations"
entry: check-untracked-migrations
language: python
always_run: true
pass_filenames: false
- id: check-unapplied-migrations
name: Check unapplied migrations with manage.py migrate --check
entry: sh -c 'python `find . -name "manage.py"` migrate --check'
pass_filenames: false
language: system
always_run: true
- id: check-absent-migrations
name: Check absent migrations with manage.py makemigrations --check --dry-run
entry: sh -c 'python `find . -name "manage.py"` makemigrations --check --dry-run'
pass_filenames: false
language: system
always_run: true
- id: po-location-format
name: Changes location format for .po files
entry: po-location-format
language: python
files: \.po$