litellm/scripts
yuneng-jiang bba85f0b6c
chore(lint): remove the LIT002 mutable-construction rule (#43971)
* chore(lint): remove the LIT002 mutable-construction rule

Drop LIT002 from scripts/check_type_discipline.py along with its helpers,
its budget entry, its unit tests, and the AGENTS.md and gate docstring
mentions. `# mutable-ok` now only suppresses LIT001, so the markers that
only existed to silence LIT002 became LIT013 stale suppressions and are
removed. The files whose layout depended on those trailing comments are
reformatted with ruff format.

Every other LIT rule count is unchanged and the ASTs of all touched
litellm/ files match main apart from one docstring.

* chore(lint): keep the leftover mutable-ok markers for a follow-up

Restore the ~1.4k `# mutable-ok` markers stripped in the previous commit
so this PR only touches the checker, its tests, the budget, and docs.
Those markers no longer suppress anything, so `# mutable-ok` is exempt
from LIT013 until a follow-up strips them.

* Revert "chore(lint): keep the leftover mutable-ok markers for a follow-up"

This reverts commit c35bc0b84e.

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-10-01 12:24:02 -07:00
..
adaptive_router_demo
health_check
auto-close-duplicates.test.ts
auto-close-duplicates.ts
benchmark_anthropic_messages_perf.py
benchmark_chat_completions_perf.py
benchmark_mock.py
benchmark_model_response_creator.py
benchmark_ocr_callbacks.py
benchmark_proxy_vs_provider.py
benchmark_streaming_chunk_overhead.py
budget_ratchet_check.py
check_mcp_operation_boundary.py
check_mcp_sdk_install.py
check_test_quality.py
check_type_discipline.py chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
classify-issue.test.ts
classify-issue.ts
comment-fixed-issue.test.ts chore(ci): drop litellm_internal_staging and litellm_oss_staging references, main is the only trunk (#42745) 2026-09-23 08:14:11 -07:00
comment-fixed-issue.ts
create_litellm_branch.ps1
create_litellm_branch.sh
create_team_key_and_submit_guardrail.sh
default_branch.py
eval_compression.py
flag-duplicate-issue.test.ts
flag-duplicate-issue.ts
gate_slot_lock.py
install-cli.sh
install.sh
install_git_hooks.sh
issue-labels.ts
label-issue.test.ts
label-issue.ts
mock_bedrock_passthrough_target.py
mock_grayswan_timeout_server.py
mutation_report.py
pre_commit_lint.sh
prisma_generate_if_needed.py
ruff_strict_gate.py
run_tracing_proxy_local.sh feat(tracing): store spend in ClickHouse automatically (#43928) 2026-09-30 22:17:43 +00:00
sync-issue-labels.test.ts
sync-issue-labels.ts
sync_together_ai_models.py
test_agent_mcp_endpoints.sh
test_guardrails_register_endpoints.sh
test_quality_gate.py
test_tool_allowlist_script.py test(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00
tpm_headline_test.sh
type_check_gate.py chore(ci): drop litellm_internal_staging and litellm_oss_staging references, main is the only trunk (#42745) 2026-09-23 08:14:11 -07:00
type_discipline_gate.py chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
verify_adaptive_router.py
with_dashboard_node.sh