summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 52425a1b5b137c21e81ecdaf17102b10022c27fc (plain)
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