litellm/.github
mateo-berri 45c8c3d231 feat(lint): gate inferred mutable-dict usage behind a DICT001 budget
LIT001 and LIT002 only see literal dict annotations and constructions,
so a value whose dict type is inferred (a helper returning
dict[str, int], a defaultdict threaded through calls) sails through
review. scripts/check_dict_usage.py walks mypy's typed AST and flags
every expression whose proper type is a bare mutable dict variant, and
scripts/dict_usage_gate.py wraps it in the same grandfathered budget
model as the LIT and basedpyright gates: fail only when the total is
over the dict-usage-budget.json limit and above the merge-base count,
with --update ratcheting limits down and branch-seeded rules passed
through untouched

The gate measures from the gate-owned .venv-typecheck env (mypy
inference depends on which packages are importable), caches base counts
in the shared lint cache under a dict-usage-base- prefix keyed by the
checker's own bytes, and runs as its own CI job because a full mypy
pass would blow the lint job's 15-minute timeout. ensure_typecheck_env
now holds an flock during provisioning so this gate and the
basedpyright gate can share the env under make lint -j. Budget seeded
at the current count of 54056
2026-08-11 18:29:54 -07:00
..
actions ci: cache Prisma CLI and engine binaries, split test timeout from setup 2026-08-10 16:10:54 +00:00
codeql [Infra] Improve CodeQL scanning coverage and schedule 2026-03-27 12:04:09 -07:00
ISSUE_TEMPLATE chore: say real $ instead of $$$ in the feature request attempt rules 2026-08-11 10:40:57 -07:00
observatory Add observatory test workflow for RC/stable releases 2026-03-01 15:30:09 -03:00
screenshots fix(team_endpoints): auto-add SSO team members to org on move (proxy admin only) (#26377) 2026-04-24 08:36:25 -07:00
scripts fix(triage): track and credit feature dead-end evidence in the verdict 2026-08-11 10:57:46 -07:00
workflows feat(lint): gate inferred mutable-dict usage behind a DICT001 budget 2026-08-11 18:29:54 -07:00
ci-coverage-allowlist.yml test(docker): gate the componentized gateway and backend images on an arbitrary-uid offline boot (#36136) 2026-08-07 09:57:37 -07:00
CODEOWNERS chore(codeowners): exempt generated schema.d.ts from UI ownership 2026-07-15 10:32:01 -07:00
dependabot.yaml chore: fixes 2026-04-05 01:30:57 -07:00
deploy-on-aws.png feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
deploy-on-gcp.png feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
deploy-to-aws.png Add files via upload 2023-10-25 16:33:53 -07:00
FUNDING.yml Update FUNDING.yml 2023-09-22 09:51:35 -07:00
pull_request_template.md docs: replace the Changes PR template section with Caveats (#36423) 2026-08-10 17:05:47 +00:00
template.yaml (chore) cleanup 2024-02-09 09:28:13 -08:00