forked from phoenix/litellm-mirror
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:
|
||||
- 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/
|
||||
# - 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