mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-07 19:03:17 +00:00
711601e22a
* fix: initial commit of v2 parallel request limiter hook enables multi-instance rate limiting to work * fix: subsequent commit with additional refactors * fix(parallel_request_limiter_v2.py): cleanup initial call hook simplify it * fix(parallel_request_limiter_v2.py): working v2 parallel request limiter * fix: more updates - still not passing testing * fix(test_parallel_request_limiter_v2.py): update test + add conftest * fix: fix ruff checks * fix(parallel_request_limiter_v2.py): use pull via pattern method to load in keys instance wouldn't have seen yet Fixes issue where redis syncing was not pulling key until instance had seen it * test: update testing to cover tpm and rpm * fix(parallel_request_limiter_v2.py): fix ruff errors * fix(proxy/hooks/__init__.py): feature flag export * fix(proxy/hooks/__init_.py): fix linting error * ci(config.yml): add tests/enterprise to ci/cd * fix: fix ruff check * test: update testing
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: pyright
|
|
name: pyright
|
|
entry: pyright
|
|
language: system
|
|
types: [python]
|
|
files: ^(litellm/|litellm_proxy_extras/|enterprise/)
|
|
- id: isort
|
|
name: isort
|
|
entry: isort
|
|
language: system
|
|
types: [python]
|
|
files: (litellm/|litellm_proxy_extras/|enterprise/).*\.py
|
|
exclude: ^litellm/__init__.py$
|
|
- id: black
|
|
name: black
|
|
entry: poetry run black
|
|
language: system
|
|
types: [python]
|
|
files: (litellm/|litellm_proxy_extras/|enterprise/).*\.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 |