2025-02-13 15:01:55 +01:00
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
2025-02-13 21:20:36 +01:00
|
|
|
- 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]
|
2025-02-13 15:01:55 +01:00
|
|
|
require_serial: true
|
2025-02-13 21:20:36 +01:00
|
|
|
additional_dependencies: []
|
2025-02-13 15:01:55 +01:00
|
|
|
files: ^(sqlglot/|tests/|setup.py)
|
2025-02-13 21:20:36 +01:00
|
|
|
- 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]
|
2025-02-13 15:01:55 +01:00
|
|
|
require_serial: true
|
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
2025-02-13 21:09:41 +01:00
|
|
|
entry: mypy sqlglot tests
|
2025-02-13 15:01:55 +01:00
|
|
|
language: system
|
|
|
|
types: [ python ]
|
|
|
|
files: ^(sqlglot/|tests/)
|
2025-02-13 21:09:41 +01:00
|
|
|
pass_filenames: false
|