Skip to content
cccskills
FreePublished on GitHub

djls-testing

Use when running tests, fixing failing tests, updating snapshots, syncing corpus data, validating before push, or working with Django matrix testing in django-language-server. Handles cargo, just, nox, insta, corpus, clippy, fmt, and lint commands.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207 stars(GitHub 207 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

DJLS Testing

Use this when validating changes or fixing test failures.

Common commands

cargo build -q                    # Build all crates
cargo test -q                     # Run all tests
cargo test test_name              # Run one test by name
cargo test -p crate_name          # Test one crate
just test                         # Run nox/Django matrix
just clippy                       # Lint with clippy
just fmt                          # Format code
just lint                         # Run pre-commit hooks
just corpus lock                  # Resolve corpus versions and update lockfile
just corpus sync                  # Download corpus from lockfile
just corpus sync -U               # Re-resolve corpus and sync
just corpus clean                 # Remove synced corpus data
just dev profile <bench> [filter] # Profile a bench with callgrind

Never use cargo doc --open.

Rules

  • All tests must pass. Fix failures instead of dismissing them as pre-existing or unrelated.
  • If corpus tests fail, run just corpus sync and fix/update snapshots as needed.
  • Before pushing, run just clippy, just fmt, and just lint.
  • Python inspector changes must be tested against all supported Django versions; see DJ_VERSIONS in noxfile.py.

Snapshots

  • Use insta for template parser snapshots.
  • Add cases to existing test modules; do not create standalone test files.
  • After changing serialized types, run:
cargo insta test --accept --unreferenced delete

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

dex

Free

Manage tasks via dex CLI. Use when breaking down complex work, tracking implementation items, or persisting context across sessions.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

Use when adding release notes, changelog entries, user-facing changes, internal changelog notes, or preparing a PR/release for django-language-server. Handles Keep a Changelog formatting and entry style.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

Use when editing Django template parser tags, validation errors, diagnostics, environment scanning, inspector data, Python environment inventory, or DJLS domain model code. Handles project-specific semantic and parser conventions.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

Maintain the ported ty resolver test corpus in crates/djls-project/tests/resolve.rs. Use when bumping the ruff git pin in the workspace Cargo.toml or when adding/reviewing module-resolution tests.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

Use when editing djls-extraction or Rust code that consumes Ruff Python AST APIs, including parse_module, parameters, boxed expressions, f-strings, or exception handlers. Handles known Ruff AST shape gotchas in django-language-server.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

Use when editing Salsa inputs, tracked functions, database traits, setters, SemanticDb, crate::Db, invalidation behavior, or incremental computation in django-language-server. Handles project-specific Salsa conventions and required impl updates.

The English summary is being prepared. Showing the original description.

joshuadavidthomas/django-language-server207Updated Oct 22, 2026

See all skills by joshuadavidthomas

Report a problem with this skill