forked from SQLMesh/sqlmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (70 loc) · 1.87 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (70 loc) · 1.87 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
70
repos:
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake
language: system
"types": [python]
require_serial: true
files: &files ^(sqlmesh/|tests/|web/|examples/|setup.py)
- id: isort
name: isort
entry: isort
language: system
"types": [python]
files: *files
require_serial: true
- id: black
name: black
language: system
args:
- --target-version
- py37
- --line-length
- "100"
entry: black
require_serial: true
files: *files
types_or:
- python
- pyi
- id: mypy
name: mypy
language: system
entry: mypy
"types": [python]
files: *files
require_serial: true
- 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/eslint-plugin@6.5.0",
"@typescript-eslint/parser@6.5.0",
eslint@8.48.0,
eslint-config-prettier@9.0.0,
eslint-config-standard-with-typescript@39.0.0,
eslint-plugin-import@2.28.1,
eslint-plugin-n@16.0.2,
eslint-plugin-promise@6.1.1,
eslint-plugin-react@7.33.2,
]
require_serial: true
language: node