-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (48 loc) · 1.53 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (48 loc) · 1.53 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^desktop/tauri/src-tauri/tauri\.conf\.json$
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=600]
- id: fix-byte-order-marker
- id: pretty-format-json
args: [--autofix, --indent, '4', --no-sort-keys]
exclude: ^desktop/tauri/src-tauri/tauri\.conf\.json$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0 # or higher tag
hooks:
- id: yamllint
args: [--format, parsable, --strict]
exclude: ^.github/
- repo: https://github.com/lyz-code/yamlfix
rev: 1.19.1
hooks:
- id: yamlfix
exclude: ^.github/
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version
rev: v0.16.5
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format
# VERSION bumping moved to .github/workflows/bump-version-develop.yml
# (auto-increments on push to develop). PR commits no longer bump
# VERSION, so rebases no longer conflict on it.
- repo: local
hooks:
- id: check-no-tracker-secrets
name: Refuse staged content matching tracker-passkey patterns
entry: python3 ./scripts/pre-commit/check_no_tracker_secrets.py
language: system
pass_filenames: true
stages: [pre-commit]