Add example config and test harness - #125
Conversation
Adds two files to help new users get started with Dippy configuration: - examples/config: Annotated example with rules for Git, Docker, npm, MCP tools, shell redirects, and home directory protection. Includes prominent warnings about the last-match-wins ordering footgun. - examples/test-config.sh: 45-test harness covering MCP tools, shell redirects, system paths, home directory protection, commands, and compound pipelines. Auto-detects dippy/dippy.exe, CI-friendly exit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add `cd Dippy && uv pip install -e .` to manual installation - Add Getting Started section describing examples/config and examples/test-config.sh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Based on Dippy's own .dippy project config: - Add rm -rf __pycache__, uv run pytest, uv run python -c, deny uv run ruff - Add Just section (allow check/fmt/lint/test, deny -C) - Add 9 new tests (54 total across 7 categories) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for this — and the inline comments are exactly what make an example config readable, so I don't want to lose them. The catch is they don't currently work, and that's our bug, not yours: Dippy doesn't strip mid-line So this PR is blocked on #153 rather than on anything you need to change — once the parser honors inline comments, your config works as written. Two smaller things to flag for when it's unblocked:
Genuinely useful PR — it turned up a real bug on our end. Holding it until #153 lands. |
Closes #124
Summary
examples/config— Annotated starter config with rules for Git, Docker, npm, MCP tools, shell redirects, and home directory protection. Includes warnings about the last-match-wins ordering footgun.examples/test-config.sh— 45-test harness across 6 categories (MCP tools, redirects, system paths, home dir, commands, pipelines). Auto-detectsdippy/dippy.exe, CI-friendly exit code.Usage
cp examples/config ~/.dippy/config bash examples/test-config.shTest plan
examples/configto~/.dippy/configbash examples/test-config.sh— all 45 tests should passdippy) and Windows (dippy.exe)