Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 983 Bytes

File metadata and controls

59 lines (48 loc) · 983 Bytes

Development

Setup with Nix (recommended)

If you have Nix and direnv installed:

git clone https://github.com/mattrobenolt/jinja2-cli.git
cd jinja2-cli
direnv allow

This provides all dependencies: uv, just, bats, hyperfine, and shellcheck.

Setup without Nix

Prerequisites:

  • Python 3.8+
  • uv
  • just (optional, for task running)
  • bats (for CLI tests)
git clone https://github.com/mattrobenolt/jinja2-cli.git
cd jinja2-cli
uv sync --all-groups --all-extras

Running tests

just test-all    # Run pytest and bats
just test        # Run pytest only
just bats        # Run bats only

Or without just:

uv run pytest -v
bats tests/bats

Linting

just lint

Or:

uv run ruff check

Formatting

just fmt

Building

just build

This creates a wheel in dist/.