mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
* build(README.md): initial commit adding a separate folder for additional proxy files. Meant to reduce size of core package * build(litellm-proxy-extras/): new pip package for storing migration files allows litellm proxy to use migration files, without adding them to core repo * build(litellm-proxy-extras/): cleanup pyproject.toml * build: move prisma migration files inside new proxy extras package * build(run_migration.py): update script to write to correct folder * build(proxy_cli.py): load in migration files from litellm-proxy-extras Closes https://github.com/BerriAI/litellm/issues/9558 * build: add MIT license to litellm-proxy-extras * test: update test * fix: fix schema * bump: version 0.1.0 → 0.1.1 * build(publish-proxy-extras.sh): add script for publishing new proxy-extras version * build(liccheck.ini): add litellm-proxy-extras to authorized packages * fix(litellm-proxy-extras/utils.py): move prisma migrate logic inside extra proxy pkg easier since migrations folder already there * build(pre-commit-config.yaml): add litellm_proxy_extras to ci tests * docs(config_settings.md): document new env var * build(pyproject.toml): bump relevant files when litellm-proxy-extras version changed * build(pre-commit-config.yaml): run poetry check on litellm-proxy-extras as well
40 lines
No EOL
1.2 KiB
YAML
40 lines
No EOL
1.2 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: pyright
|
|
name: pyright
|
|
entry: pyright
|
|
language: system
|
|
types: [python]
|
|
files: ^(litellm/|litellm_proxy_extras/)
|
|
- id: isort
|
|
name: isort
|
|
entry: isort
|
|
language: system
|
|
types: [python]
|
|
files: (litellm/|litellm_proxy_extras/).*\.py
|
|
exclude: ^litellm/__init__.py$
|
|
- id: black
|
|
name: black
|
|
entry: poetry run black
|
|
language: system
|
|
types: [python]
|
|
files: (litellm/|litellm_proxy_extras/).*\.py
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0 # The version of flake8 to use
|
|
hooks:
|
|
- id: flake8
|
|
exclude: ^litellm/tests/|^litellm/proxy/tests/|^litellm/tests/litellm/|^tests/litellm/
|
|
additional_dependencies: [flake8-print]
|
|
files: (litellm/|litellm_proxy_extras/).*\.py
|
|
- repo: https://github.com/python-poetry/poetry
|
|
rev: 1.8.0
|
|
hooks:
|
|
- id: poetry-check
|
|
files: ^(pyproject.toml|litellm-proxy-extras/pyproject.toml)$
|
|
- repo: local
|
|
hooks:
|
|
- id: check-files-match
|
|
name: Check if files match
|
|
entry: python3 ci_cd/check_files_match.py
|
|
language: system |