forked from snowflakedb/snowflake-connector-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.47 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.47 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
exclude: '^(.*egg.info.*|.*/parameters.py).*$'
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: license_header.txt
- id: check-yaml
- id: debug-statements
- id: check-ast
- id: flake8
additional_dependencies: ["flake8-bugbear == 19.3.0", "flake8-docstrings"]
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.9
hooks:
- id: insert-license
name: insert-py-license
files: >
(?x)^(
src/snowflake/connector/.*\.pyx?|
test/.*\.py|
)$
exclude: >
(?x)^(
src/snowflake/connector/version.py|
src/snowflake/connector/cpp|
)$
args:
- --license-filepath
- license_header.txt
- id: insert-license
name: insert-cpp-license
files: src/snowflake/connector/cpp/.*\.(cpp|hpp)$
exclude: version.py$
args:
- --comment-style
- //
- --license-filepath
- license_header.txt
- repo: https://github.com/asottile/pyupgrade
rev: v1.19.0
hooks:
- id: pyupgrade