-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
50 lines (49 loc) · 1.35 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_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: ^static/js/vendor/
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
exclude: ^core/migrations/
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.30.2
hooks:
- id: djlint-reformat-django
- id: djlint-django
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v3.0.0-alpha.9-for-vscode'
hooks:
- id: prettier
- repo: local
hooks:
- id: pending-migrations
name: Check for pending migrations
language: system
entry: .venv/bin/python manage.py makemigrations --check --dry-run
types: [python]
pass_filenames: false
- id: eslint
name: Run ESLint
language: system
entry: npx eslint ./templates/js
types: [javascript]
pass_filenames: false
- id: stylelint
name: Run Stylelint
language: system
entry: npx stylelint "static_src/css/**/*.css"
types: [css]
pass_filenames: false