forked from TobikoData/sqlmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.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/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