awesome-ogd-switzerland

Maintenance helpers

The main README is the open-data directory. This small Python package contains its maintenance scripts.

Setup and commands

Use Python 3.13+ and uv. Run these commands from the repository root:

make install       # Install dependencies and the local package in .venv
make count-sources # Write count_sources.md and print the counts
make check-links   # Write link-check-report.md (requires network access)
make reports       # Run both helpers
make check         # Lint, check formatting and run offline tests
make format        # Format Python files
make help          # List all targets

Both helpers default to README.md in the current working directory. Reports are written there too and are ignored by Git. Override the input or output with:

uv run --locked count-sources README.md --output /tmp/counts.md
uv run --locked check-links README.md --output /tmp/links.md
make check-links ARGS='README.md --output /tmp/links.md'

Use --help with either command for options. make lint, make format-check and make test also work separately. The tests make no network requests.

Maintenance skill

The repository includes the maintain-swiss-ogd skill for agent-assisted refreshes and targeted audits. It covers discovering and verifying resources, checking reuse terms, correcting entries and recording findings. Ask an agent with the skill available to “Use maintain-swiss-ogd to audit the directory” or to review a specific section. The scripts support that workflow; HTTP results still need editorial review.