From 877b37c6dea02fb6d64d64dc53a06441af48e755 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 15 Jun 2024 16:48:00 -0700 Subject: [PATCH] ci(pre-commit-config.yaml): add isort as a pre-commit hook --- .pre-commit-config.yaml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74f165bdd..f31d0d057 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,19 @@ repos: +- repo: local + hooks: + # - id: mypy + # name: mypy + # entry: python3 -m mypy --ignore-missing-imports + # language: system + # types: [python] + # files: ^litellm/ + - id: isort + name: isort + entry: isort + language: system + types: [python] + files: litellm/.*\.py + exclude: ^litellm/__init__.py$ - repo: https://github.com/psf/black rev: 24.2.0 hooks: @@ -16,18 +31,10 @@ repos: name: Check if files match entry: python3 ci_cd/check_files_match.py language: system -- repo: local - hooks: - - id: mypy - name: mypy - entry: python3 -m mypy --ignore-missing-imports - language: system - types: [python] - files: ^litellm/ - - id: check-file-length - name: Check file length - entry: python check_file_length.py - args: ["10000"] # set your desired maximum number of lines - language: python - files: litellm/.*\.py - exclude: ^litellm/tests/ \ No newline at end of file + # - id: check-file-length + # name: Check file length + # entry: python check_file_length.py + # args: ["10000"] # set your desired maximum number of lines + # language: python + # files: litellm/.*\.py + # exclude: ^litellm/tests/ \ No newline at end of file