Skip to content

Add just check as the single validation entrypoint - #6

Merged
stousignant merged 1 commit into
mainfrom
just-check-entrypoint
Nov 28, 2026
Merged

stousignant merged 1 commit into
mainfrom
just-check-entrypoint

Conversation

@stousignant

Copy link
Copy Markdown
Owner

Adds a root justfile so agents, hooks and humans run one command: just check runs everything that must pass before merge (mirrors CI, never modifies files) and just test runs the tests. The recipes wrap the repo's existing commands, and the agent docs now point to just check. Requires just.

No CI, dependency or lockfile changes; CI wiring is a separate step.

# Validation entrypoint; mirrors .github/workflows/ci.yml. Needs Python 3.10+ and Gitleaks 8.30.1.
export GITLEAKS_BINARY := env("GITLEAKS_BINARY", `command -v gitleaks || true`)
export PYTHONDONTWRITEBYTECODE := "1"

# List available recipes
default:
    @just --list

# Run everything CI runs: tests, docs validation, working-tree and history secret scans
check: _require-gitleaks test
    python3 scripts/check_docs.py
    python3 scripts/check_secrets.py --working-tree
    python3 scripts/check_secrets.py --history

# Run the standard-library tests, including native Gitleaks canaries
test: _require-gitleaks
    python3 -m unittest discover -s tests -v

[private]
_require-gitleaks:
    @test -x "$GITLEAKS_BINARY" || { echo "Gitleaks 8.30.1 not found: put it on PATH or set GITLEAKS_BINARY" >&2; exit 1; }

Validation: just check exits 0 on this head.

Review-gate: 1 → none (self) · delegated

@stousignant
stousignant merged commit 1b87c71 into main Nov 28, 2026
2 checks passed
@stousignant
stousignant deleted the just-check-entrypoint branch November 28, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant