forked from snowflakedb/snowpark-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
72 lines (72 loc) · 2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
exclude: '^(.*egg.info.*|.*/parameters.py|docs/).*$'
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--multi-line", "3",
"--trailing-comma",
"--force-grid-wrap", "0",
"--use-parentheses",
"--ensure-newline-before-comments",
"--line-length", "88",
"--combine-as",
"--project", "snowflake.connector",
"--project", "snowflake.snowpark",
]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args:
- --safe
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: >
(?x)^(
license_header.txt|
tests/resources/.*|
)$
- id: check-yaml
# The first two lines of meta.yaml does not work with check-yaml
exclude: >
(?x)^(
recipe/meta.yaml|
.github/repo_meta.yaml|
)$
- id: debug-statements
- id: check-ast
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.13
hooks:
- id: insert-license
name: insert-py-license
files: >
(?x)^(
src/snowflake/snowpark/.*\.py|
tests/.*\.py|
)$
exclude: >
(?x)^(
src/snowflake/snowpark/version.py|
tests/resources/.*\.py|
)$
args:
- --license-filepath
- license_header.txt
- repo: https://github.com/pycqa/flake8.git
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-init-return == 1.0.0