mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-09-21 13:37:55 -05:00
* new: add pre-commit * new: exclude auto-generated files * new: increase black line length * fix: fix exclude pattern * remove default version * apply black --------- Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
29 lines
730 B
YAML
29 lines
730 B
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
#default_language_version:
|
|
# python: python3.8
|
|
|
|
exclude: 'qdrant_client/(grpc|http|models)/'
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.1.0
|
|
hooks:
|
|
- id: black
|
|
name: "Black: The uncompromising Python code formatter"
|
|
args: ["--line-length", "99"]
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: "Sort Imports"
|
|
args: ["--profile", "black"]
|