-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.55 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.55 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, main, --branch, master]
- repo: local
hooks:
- id: bqetl_format
name: bqetl_format
language: script
entry: ./bqetl format --check
types: [sql]
exclude: sql_generators/.+\.sql$
- id: bqetl_backfill_validate
name: bqetl_backfill_validate
language: script
entry: ./bqetl backfill validate-multiple --ignore-missing-metadata
types: [yaml]
files: ^.+/backfill\.yaml$
- id: black
name: black
language: system
entry: ./venv/bin/black
types_or: [python, pyi]
require_serial: true
- id: flake8
name: flake8
language: system
entry: ./venv/bin/flake8
types: [python]
require_serial: true
- id: yamllint
name: yamllint
language: system
entry: ./venv/bin/yamllint -c .yamllint.yaml
types: [file, yaml]
- id: isort
name: isort
language: system
entry: ./venv/bin/isort --filter-files
types_or: [cython, pyi, python]
require_serial: true
# TODO: Switch to ruff, since pydocstyle was officially deprecated in Nov 2023
- id: pydocstyle
name: pydocstyle
language: system
entry: ./venv/bin/pydocstyle
types: [python]
exclude: setup\.py|(.*/)?test_.*\.py
- id: mypy
name: mypy
language: system
entry: ./venv/bin/mypy --ignore-missing-imports --scripts-are-modules
types_or: [python, pyi]
exclude: sql/.+/.+/.+/query\.py$
require_serial: true