-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
75 lines (75 loc) · 2.38 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
75 lines (75 loc) · 2.38 KB
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
exclude: ^static/.*|/migrations/.*|\.min\.js$|\.min\.css$|\.css\.map$|\.min\.js$|\.js\.map$|\.svg$
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks # Enables fast path
rev: v6.0.0 # This is ignored for fast path detection
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-json
- id: check-toml
- id: check-yaml
- id: mixed-line-ending
- id: check-symlinks
- id: check-merge-conflict
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/adamchainz/djade-pre-commit
rev: '1.9.0'
hooks:
- id: djade
args: [--target-version, "5.1"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.21
hooks:
- id: ruff
args: [ --fix, --show-fixes ]
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.40.6
hooks:
# - id: djlint-reformat-django enable once format changes have been applied
- id: djlint-django
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v10.7.0'
hooks:
- id: eslint
additional_dependencies:
- eslint@9.39.1
- '@eslint/js@9.39.2'
- eslint-plugin-react@7.37.5
- typescript-eslint@8.46.1
files: ^assets/javascript/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [ file ]
args: [ --fix ]
- repo: https://github.com/rbubley/mirrors-prettier
rev: 'v3.9.5'
hooks:
- id: prettier
files: ^components/chat_widget/src/.*\.(ts|tsx|css)$
types: [ file ]
- repo: https://github.com/allganize/ty-pre-commit
# Ty version. Keep in sync with the `ty` entry in pyproject.toml's [dependency-groups.dev].
rev: v0.0.59
hooks:
# Run the type checker.
- id: ty-check
# docs/plans/ contains design sketches, not runtime code.
exclude: ^docs/plans/
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: local
hooks:
- id: waf-allow-not-first
name: waf_allow must be the first decorator listed
entry: scripts/waf_pre_commit.sh
language: system
pass_filenames: false
always_run: true
fail_fast: true