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
30 lines (30 loc) · 892 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 892 Bytes
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
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/|sqlmesh_dbt/|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)
- id: valid migrations
name: valid migrations
entry: tooling/validating_migration_numbers.sh
language: system
pass_filenames: false