-
Notifications
You must be signed in to change notification settings - Fork 168
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.72 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
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check --force-exclude --fix --ignore E721 --ignore E741
language: python
types_or: [python, pyi]
require_serial: true
files: &files ^(sqlmesh/|tests/|web/|examples/|setup.py)
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude --line-length 100
language: python
types_or: [python, pyi]
require_serial: true
files: *files
- id: mypy
name: mypy
language: system
entry: mypy
"types": [python]
files: *files
require_serial: true
exclude: ^(tests/fixtures)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "fc26039"
hooks:
- id: prettier
name: prettier
files: ^(web/client)
entry: prettier --write --ignore-path web/client/.prettierignore
exclude: ^(web/client/node_modules)
require_serial: true
language: node
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "4620ec5"
hooks:
- id: eslint
name: eslint
files: ^(web/client)
exclude: ^(web/client/node_modules)
entry: eslint --fix
additional_dependencies:
[
"@typescript-eslint/[email protected]",
"@typescript-eslint/[email protected]",
]
require_serial: true
language: node