Add validate-feed helper script

This commit is contained in:
Abel Luck 2026-03-31 11:28:26 +02:00
parent 939cd9ea5d
commit dce67ea9e3
3 changed files with 80 additions and 0 deletions

View file

@ -81,12 +81,14 @@ The only way for actions to affect the view returned by the render-fn running in
- Sync Python dependencies with `uv sync --all-groups`.
- Run the app with `uv run repub`.
- Generate CSS with `tailwindcss -i ./repub/static/app.tailwind.css -o ./repub/static/app.css` and add `--watch` when you need live rebuilds.
- Validate a generated feed with `./scripts/validate-feed path/to/feed.rss`. This wraps the local checkout at `~/src/github.com/w3c/feedvalidator` and pages the validator output through `less` by default.
```sh
uv sync --all-groups
uv run pytest
uv run flake8 repub/ tests/
uv run pyright
./scripts/validate-feed out/feeds/mn-cuba/feed.rss
nix fmt
nix flake check
uv run repub