-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (44 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (44 loc) · 1.36 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
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
exclude: ^(static/model.json|.vscode/.*.json|tsconfig.json)
- id: check-toml
- id: check-yaml
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=5120']
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.18.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
additional_dependencies:
- prettier@3.9.6
- prettier-plugin-svelte@4.1.1
- prettier-plugin-tailwindcss@0.8.1
args: [--config, ./.prettierrc, --ignore-path, ./.prettierignore, --write, ./src]
- repo: local
hooks:
- id: cargo-fmt
name: cargo-fmt
types: [rust]
language: system
entry: cargo fmt
args: [--manifest-path, ./src-tauri/Cargo.toml]
pass_filenames: false
- id: cargo-clippy
name: cargo-clippy
types: [rust]
language: system
entry: cargo clippy
args: [--manifest-path, ./src-tauri/Cargo.toml, --, -D, warnings]
pass_filenames: false