Examples appendix

This appendix catalogues the current example corpus and highlights high-value fixtures to use when developing and testing pytest-just.

Corpus summary

  • examples/public/: curated public examples with known feature diversity
  • examples/local/: copied from sibling repositories (../*/justfile and ../*/Justfile)
  • Local snapshot details are recorded in examples/local/MANIFEST.tsv
  • Aggregate ingestion counts and reuse statistics are recorded in docs/recipe_reuse_report.md

Why this corpus matters

Using many real justfiles improves confidence that: - JSON dump loading remains compatible across varied syntax - dependency and parameter checks behave correctly in practical projects - shebang-heavy recipes are classified correctly for dry-run safety - command-body assertions remain useful across shell styles and tooling ecosystems

Public examples to keep

These should remain as compact, intentionally curated fixtures:

  • examples/public/async-compression/justfile
    • parameters + grouped workflow patterns
  • examples/public/actix-web/justfile
    • richer dependency graph and workspace command patterns
  • examples/public/martin/justfile
    • imports/modules and shebang-heavy recipes

Suggested test matrix

When extending pytest-just, run at least:

  1. Core fixture contracts
  2. Recipe-type checks
    • non-shebang dry-run checks
    • shebang classification checks
  3. Body/variable checks
  4. Cross-file checks
    • imported recipe visibility
    • alias mapping behaviour

Candidate future additions

Areas worth adding to examples if encountered: - justfiles using [private] attributes - justfiles using [group(\"...\")] attributes - intentionally invalid justfiles for negative-path error tests - nested import trees with duplicate recipe names to stress conflict handling