Codex Django Language Server Ruff AST Parameter Defaults
Inspect Ruff AST shapes confirmed by django-language-server before traversing parameter defaults, boxed expressions or f-string parts.
中文Install in Codex
Open django-language-server in Codex with its Rust code, Ruff version and a minimal Python input.
- Review `.agents/skills/djls-ruff-ast/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/djls-ruff-ast/` in your project and save the reviewed file as `.agents/skills/djls-ruff-ast/SKILL.md`.
- Start Codex from that project's root, then type `$djls-ruff-ast` and select the matching skill.
Example task
Design an AST test for these function parameter defaults.
{"python":"def render(label, width=24):\n return label","parameterA":"label","parameterB":"width","defaultB":24}What to check
Check `label.default=None` and `width.default=24`, reading both defaults from their own `ParameterWithDefault`.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should I expand an f-string with a parts method?
Use the Ruff API confirmed by this project. Iterate FStringValue with iter.