This repository was archived by the owner on Feb 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (63 loc) · 1.84 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
args: [--disallow-untyped-defs, --ignore-missing-imports]
additional_dependencies:
- types-PyYAML
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-alpha.2
hooks:
- id: eslint
types: [file]
args: [--fix, --max-warnings=0]
files: \.(js|ts|svelte)$
exclude: src-svelte/src/lib/sample-call.ts
additional_dependencies:
- eslint
- svelte
- typescript
- eslint-plugin-svelte
- eslint-config-prettier
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- svelte-eslint-parser
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args: [--write, --plugin, prettier-plugin-svelte]
files: \.(json|yaml|html|js|ts|svelte)$
additional_dependencies:
- prettier
- prettier-plugin-svelte
- svelte
- repo: local
hooks:
- id: typecheck-svelte
name: svelte-check
entry: yarn workspace gui svelte-check --fail-on-warnings
language: system
types: [file]
files: \.(ts|svelte)$
exclude: ^webdriver/
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --manifest-path src-tauri/Cargo.toml --
language: system
types: [rust]
- id: cargo-clippy
name: cargo clippy
entry: src-tauri/clippy.sh
language: system
types: [rust]
pass_filenames: false