-
Notifications
You must be signed in to change notification settings - Fork 33
/
.pre-commit-config.yaml
75 lines (75 loc) · 2.18 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md,markdown"]
exclude: .github/PULL_REQUEST_TEMPLATE.md
- id: no-commit-to-branch
args: [--branch, main, --branch, develop]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
hooks:
- id: ruff
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: [--external-sources]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.34.1
hooks:
- id: djlint-django
args: [--reformat, --lint]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: \.[jt]sx?$
args: [--fix]
types: [file]
additional_dependencies:
- eslint@8.57.0
- "typescript-eslint@7.11.0"
- "eslint-plugin-prefer-arrow@1.2.3"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
additional_dependencies:
- prettier@3.2.5
- repo: local
hooks:
- id: translations
name: translations
description: Check if the translation file is up-to-date
entry: tools/check_translations.sh
types_or: [python, html]
language: script
pass_filenames: false
- repo: local
hooks:
- id: frontend-tests
name: frontend-tests
description: Run frontend tests
entry: tools/vitest.sh
language: script
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
additional_dependencies: [types-python-dateutil, types-PyYAML, types-requests]