forked from dbt-labs/dbt-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (40 loc) · 947 Bytes
/
.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
# Configuration for pre-commit hooks (see https://pre-commit.com/).
exclude: ^(dbt_common/events/types_pb2.py)
# Force all unspecified python hooks to run python 3.8
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: debug-statements
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
- id: trailing-whitespace
exclude_types:
- "markdown"
- id: check-case-conflict
- repo: local
hooks:
- id: black
name: black
entry: hatch run lint:black
language: system
types: [python]
pass_filenames: false
verbose: true
- id: flake8
name: flake8
entry: hatch run lint:flake8
language: system
types: [python]
pass_filenames: false
verbose: true
- id: mypy
name: mypy
entry: hatch run lint:mypy
language: system
types: [python]
pass_filenames: false
verbose: true