forked from snowflakedb/snowflake-connector-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
27 lines (27 loc) · 927 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
exclude: '^(.*egg.info.*|.*/parameters.py).*$'
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.1
hooks:
- id: seed-isort-config
# This work around is necessary until we break the monorepo apart
entry: bash -c "cd Python/snowflake/connector && 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
- id: check-yaml
- id: debug-statements
- id: flake8
entry: bash -c "cd Python/snowflake/connector && flake8"
additional_dependencies: ["flake8-bugbear == 19.3.0"]
- repo: https://github.com/asottile/pyupgrade
rev: v1.19.0
hooks:
- id: pyupgrade
entry: bash -c "cd Python/snowflake/connector && pyupgrade"