-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.94 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
58
59
---
exclude: '^dist'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-json
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
exclude: dbt_project/target/manifest.json,tests/fixtures/dbt_16/target/manifest.json,tests/fixtures/dbt_17/target/manifest.json,tests/fixtures/dbt_18/target/manifest.json
- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry run ruff check --force-exclude --config pyproject.toml --fix
language: python
types_or: [python, pyi, jupyter]
require_serial: true
- repo: local
hooks:
- id: ruff-format
name: ruff-format
entry: poetry run ruff format --force-exclude --config pyproject.toml
language: python
types_or: [python, pyi, jupyter]
require_serial: true
- repo: local
hooks:
- id: mypy
args: ["--install-types", "--explicit-package-bases", "--ignore-missing-imports", "--scripts-are-modules", "--non-interactive"]
entry: poetry run mypy
language: system
name: mypy
require_serial: true
types_or: [python, pyi]
- repo: local
hooks:
- id: alphabetical-checks
args: []
entry: poetry run python ./scripts/assert_alphabetical_checks.py
language: system
name: alphabetical-checks
require_serial: true
types_or: [python, pyi]
- repo: local
hooks:
- id: sqlfmt
entry: poetry run sqlfmt
language: system
name: sqlfmt
require_serial: true
types_or: [sql, jinja]