Mateo Wang
48b5a5a0cc
style: unify ruff format width on 120 ( #31518 )
...
The repo linted at 120 (E501, isort) but ran ruff format at 88 via a
--line-length 88 override in the Makefile and CI, leaving the formatter
and the linter disagreeing on wrap width. Drop the override so ruff.toml's
line-length = 120 is the single source of truth and reformat the tree to
match.
2026-06-27 12:39:29 -07:00
oss-agent-shin
714664fe21
docs: add class docstring to _LoopWrapper ( #27870 )
...
Document the purpose of the daemon thread that backs the sync
branch of the timeout decorator.
Co-authored-by: oss-agent-shin <279349115+oss-agent-shin@users.noreply.github.com>
2026-05-13 13:54:00 -07:00
Krish Dholakia
d57be47b0f
Litellm ruff linting enforcement ( #5992 )
...
* ci(config.yml): add a 'check_code_quality' step
Addresses https://github.com/BerriAI/litellm/issues/5991
* ci(config.yml): check why circle ci doesn't pick up this test
* ci(config.yml): fix to run 'check_code_quality' tests
* fix(__init__.py): fix unprotected import
* fix(__init__.py): don't remove unused imports
* build(ruff.toml): update ruff.toml to ignore unused imports
* fix: fix: ruff + pyright - fix linting + type-checking errors
* fix: fix linting errors
* fix(lago.py): fix module init error
* fix: fix linting errors
* ci(config.yml): cd into correct dir for checks
* fix(proxy_server.py): fix linting error
* fix(utils.py): fix bare except
causes ruff linting errors
* fix: ruff - fix remaining linting errors
* fix(clickhouse.py): use standard logging object
* fix(__init__.py): fix unprotected import
* fix: ruff - fix linting errors
* fix: fix linting errors
* ci(config.yml): cleanup code qa step (formatting handled in local_testing)
* fix(_health_endpoints.py): fix ruff linting errors
* ci(config.yml): just use ruff in check_code_quality pipeline for now
* build(custom_guardrail.py): include missing file
* style(embedding_handler.py): fix ruff check
2024-10-01 19:44:20 -04:00
Krrish Dholakia
4905929de3
refactor: add black formatting
2023-12-25 14:11:20 +05:30
Krrish Dholakia
9d8f872f38
fix(promptlayer.py): fixing promptlayer logging integration
2023-11-13 15:04:15 -08:00
Krrish Dholakia
4340749ea3
fix(timeout.py): fix timeout issue
2023-11-13 11:07:17 -08:00
Krrish Dholakia
45b6f8b853
refactor: fixing linting issues
2023-11-11 18:52:28 -08:00
Krrish Dholakia
d3323ba637
refactor(openai.py): making it compatible for openai v1
...
BREAKING CHANGE:
2023-11-11 15:33:02 -08:00
ishaan-jaff
ce4423e213
(fix) stability imp: completion() timeout during high traffic, should not raise exception
2023-11-06 17:54:35 -08:00
Krrish Dholakia
ab54262d37
fix(timeout.py): import errors
2023-11-04 16:05:14 -07:00
Krrish Dholakia
5bd6d6ff4c
test(test_completion.py): num retries 3
2023-11-04 15:55:56 -07:00
ishaan-jaff
8120477be4
fix(completion()): add request_timeout as a param, fix claude error when request_timeout set
2023-10-05 19:05:28 -07:00
Krrish Dholakia
bdc6ef1df8
add contributor message to code
2023-09-25 10:00:10 -07:00
ishaan-jaff
fb3983d058
fix timeouts + tests + bump v
2023-09-05 17:17:58 -07:00
ishaan-jaff
fbcb6d1c20
mypy linting fixes 2
2023-08-18 11:16:31 -07:00
ishaan-jaff
15b1da9dc8
add linting
2023-08-18 11:05:05 -07:00
Krrish Dholakia
80d77fed71
coverage for custom api scenario in load testing
2023-08-11 18:20:24 -07:00
Krrish Dholakia
a8b3fc6c2d
adding tenacity retries
2023-08-03 10:06:31 -07:00
Krrish Dholakia
7b2901be9e
custom timeout decorator
2023-08-01 12:20:25 -07:00