-
Notifications
You must be signed in to change notification settings - Fork 223
/
.pre-commit-config.yaml
26 lines (26 loc) · 1.04 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
exclude: "(tests/utils/stacks/linenos.py|tests/utils/stacks/linenos2.py|tests/contrib/grpc/grpc_app/.*pb2.*.py)"
- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black
language_version: python3
exclude: "(tests/utils/stacks/linenos.py|tests/utils/stacks/linenos2.py|tests/contrib/grpc/grpc_app/.*pb2.*.py)"
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
exclude: "(tests/utils/stacks/linenos.py|tests/utils/stacks/linenos2.py|tests/contrib/grpc/grpc_app/.*pb2.*.py)"
- repo: local
hooks:
- id: license-header-check
name: License header check
description: Checks the existance of license headers in all Python files
entry: ./tests/scripts/license_headers_check.sh
exclude: "(tests/utils/stacks/linenos.py|tests/utils/stacks/linenos2.py|tests/contrib/grpc/grpc_app/.*pb2.*.py)"
language: script
types: [python]