- Python 100%
badgerp_community #
Reports the presence of nonempty community documentation in a local directory.
badge(producer=community(root=".", policy="contributing"))
badge(producer=community(root=".", policy="security"))
Policies: contributing, code-of-conduct, security. These search respectively
for CONTRIBUTING.md, CODE_OF_CONDUCT.md, or SECURITY.md at project root,
.github/, and docs/. A nonempty file is green documented; missing/blank files
show neutral not found. This does not assess the policy's adequacy or claim
compliance or security. Missing project roots fail explicitly. Symlinks leaving
the selected root are rejected; files elsewhere are never read.
Fixture project: fixtures/project.
Developing independently #
This is a plugin for Badger,
not a standalone Python application. Badger supplies the badger runtime module.
For tests outside the CLI, put the plugins directory from a compatible Badger
checkout on PYTHONPATH:
PYTHONPATH=/path/to/Badger/plugins uv run --no-project --with pytest pytest tests -m 'not network'
To try working-tree changes in a separate Badger project, use register() with
a local path pointing at this checkout. See the
distribution guide.
Releasing #
Keep the existing badgerp_* distribution name so Badger can discover it.
After updating the version (and uv.lock if present), build and check the
artifacts from a clean checkout:
uv build --clear
uvx twine check dist/*
Publish only after coordinating with the Badger maintainers so the same version
is not released from both checkouts. Supply UV_PUBLISH_TOKEN securely in the
environment, then run uv publish --check-url https://pypi.org/simple/ dist/*.
This plugin is licensed under the Blue Oak Model License 1.0.0.