mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
[Fix] CI: license check for black 26.3.1 + skip disk_cache test without diskcache
- Add black to liccheck.ini Authorized Packages (MIT-licensed).
- pytest.importorskip("diskcache") at top of test_disk_cache.py so
the test skips cleanly when diskcache isn't installed (it's no longer
pulled in by the dev group after the CVE-2025-69872 mitigation).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4af58e1f97
commit
6769c8b66f
2 changed files with 3 additions and 0 deletions
|
|
@ -171,3 +171,4 @@ langgraph: >=1.0.10 # MIT License
|
|||
langgraph-prebuilt: >=1.0.8 # MIT License - https://github.com/langchain-ai/langgraph/blob/main/LICENSE
|
||||
pytest-rerunfailures: >=15.1 # MPL 2.0 license
|
||||
pytest-recording: >=0.13.4 # MIT license
|
||||
black: >=24.10.0 # MIT License - https://github.com/psf/black/blob/main/LICENSE
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import tempfile
|
|||
|
||||
import pytest
|
||||
|
||||
pytest.importorskip("diskcache")
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../../.."))
|
||||
|
||||
from litellm.caching.disk_cache import DiskCache
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue