mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
ci(pre-commit-config.yaml): add isort as a pre-commit hook
This commit is contained in:
parent
f84941bdc0
commit
877b37c6de
1 changed files with 22 additions and 15 deletions
|
@ -1,4 +1,19 @@
|
||||||
repos:
|
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
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.2.0
|
rev: 24.2.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -16,18 +31,10 @@ repos:
|
||||||
name: Check if files match
|
name: Check if files match
|
||||||
entry: python3 ci_cd/check_files_match.py
|
entry: python3 ci_cd/check_files_match.py
|
||||||
language: system
|
language: system
|
||||||
- repo: local
|
# - id: check-file-length
|
||||||
hooks:
|
# name: Check file length
|
||||||
- id: mypy
|
# entry: python check_file_length.py
|
||||||
name: mypy
|
# args: ["10000"] # set your desired maximum number of lines
|
||||||
entry: python3 -m mypy --ignore-missing-imports
|
# language: python
|
||||||
language: system
|
# files: litellm/.*\.py
|
||||||
types: [python]
|
# exclude: ^litellm/tests/
|
||||||
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/
|
|
Loading…
Add table
Add a link
Reference in a new issue