-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
50 lines (43 loc) · 1.22 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default_stages: [push, commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
exclude: '^.*\.(tsv|json|svg)'
- id: end-of-file-fixer
exclude: '^.*\.(tsv|json|svg)'
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: black
name: Black formatter
entry: poetry run black --check
language: system
types: [python]
- id: isort
name: isort formatter
entry: poetry run isort
language: system
types: [python]
- id: pytestnow
name: Check that no tests marked with 'now' exist
entry: "@pytest.mark.now"
language: pygrep
types: [python]
- id: django-migrations
name: Check django migrations
entry: python manage.py makemigrations --check --no-input
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
hooks:
- id: flake8
# - repo: https://github.com/prettier/prettier
# rev: "2.1.2" # Use the sha or tag you want to point at
# hooks:
# - id: prettier
# files: ^design/