forked from tobymao/sqlglot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (31 loc) · 889 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (31 loc) · 889 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
31
repos:
- repo: local
hooks:
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff check
--force-exclude --fix
--ignore E721
--ignore E741
language: python
types_or: [python, pyi]
require_serial: true
additional_dependencies: []
files: ^(sqlglot/|tests/|setup.py)
- id: ruff-format
name: ruff-format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: ruff format
--force-exclude
--line-length 100
language: python
types_or: [python, pyi]
require_serial: true
- id: mypy
name: mypy
entry: mypy sqlglot tests
language: system
types: [ python ]
files: ^(sqlglot/|tests/)
pass_filenames: false