-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (69 loc) · 1.91 KB
/
.pre-commit-config.yaml
File metadata and controls
69 lines (69 loc) · 1.91 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
repos:
# Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# Mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies: ["types-requests", "types-PyYAML"]
## JS ##
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args:
[
"--config",
"frontend/.prettierrc",
"--ignore-unknown",
"--write",
"--check",
]
language: node
entry: frontend/node_modules/.bin/prettier
require_serial: true
files: ^frontend/.*\.(js|jsx|ts|tsx|css|svelte)$
additional_dependencies:
- prettier
- prettier-plugin-svelte
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v10.1.0
hooks:
- id: eslint
name: eslint
language: node
entry: frontend/node_modules/eslint/bin/eslint.js
args: [--config, frontend/eslint.config.js]
require_serial: true
files: \.(js|ts|svelte|css|mjs)$
additional_dependencies:
- eslint
- svelte
- typescript
- eslint-plugin-svelte
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- svelte-eslint-parser
- repo: local
hooks:
- id: svelte-check
name: Svelte check
language: system
entry: npx svelte-check --fail-on-warnings
files: \.(js|ts|svelte)$
pass_filenames: false
require_serial: true
## SQL ##
- repo: https://github.com/sqlfluff/sqlfluff
rev: 4.1.0
hooks:
- id: sqlfluff-lint
args: ["--config", "backend/pyproject.toml"]
- id: sqlfluff-fix
args: ["--config", "backend/pyproject.toml"]