-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
72 lines (72 loc) · 2.15 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
64
65
66
67
68
69
70
71
72
repos:
# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
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: v9.13.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: 3.2.4
hooks:
- id: sqlfluff-lint
args: ['--config', 'backend/pyproject.toml'] # Specify the config file location here
- id: sqlfluff-fix
args: ['--config', 'backend/pyproject.toml'] # Specify the config file location here
# Arbitrary arguments to show an example
# args: [--rules, "LT02,CP02"]
# additional_dependencies: ['<dbt-adapter>', 'sqlfluff-templater-dbt']