swarmauri_tests_griffe
swarmauri_tests_griffe is a pytest plugin that loads your
package metadata with Griffe. The
plugin converts any warnings generated during inspection into failing tests so
that documentation, annotations, and runtime signatures stay in sync across the
Swarmauri ecosystem.
Features
- Python 3.10–3.12 coverage – verified across the supported Swarmauri runtime range so you can keep consistent quality gates on every maintained interpreter.
- Warning-to-test enforcement – automatically escalates Griffe warnings to failing pytest checks to stop documentation drift before it ships.
- Zero-config discovery – the plugin registers as a pytest entry point and loads without additional setup once installed.
- Flexible targeting – tune the inspection scope with command-line flags or
persistent
pyproject.tomlsettings.
Installation
Choose the installer that best fits your workflow:
Using uv
uv add swarmauri-tests-griffe
Using pip
pip install swarmauri-tests-griffe
Both commands add the plugin as a dependency of your project. Because the plugin uses pytest entry points, it is automatically discovered the next time your test suite runs—no manual configuration required.
Supported Python versions: The plugin is tested and published for Python 3.10, 3.11, and 3.12 across the Swarmauri platform.
Usage
After installation, execute your test suite as normal and a dynamic Griffe check
is injected for each configured package. By default, the package defined in
pyproject.toml is inspected. You can target additional packages or limit the
scope with command-line options:
pytest --griffe-package your_package --griffe-package another_package
Each --griffe-package argument adds a module to the inspection list. If
Griffe produces warnings while processing any module, the corresponding dynamic
test fails and the collected warnings are rendered in the pytest output, making
it easy to pinpoint the files that need attention.
Configuring defaults
For larger projects, keep the configuration in pyproject.toml to avoid
repeating command-line flags:
[tool.pytest.ini_options]
addopts = "--griffe-package swarmauri_core --griffe-package swarmauri_tests_griffe"
With the options saved, every pytest run enforces the same quality gates across your codebase without extra setup.
Metadata
Release files for swarmauri_tests_griffe 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_tests_griffe-0.2.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_tests_griffe-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / swarmauri_tests_griffe-0.2.0.tar.gz
| Download URL | swarmauri_tests_griffe-0.2.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d02b74fec8ef92d60e8eac58980704aeec0a4ab587ed99da8cb81227b477a0ef
|
|
BLAKE2b-256 checksum How to use checksums |
c5099f71dff91ce1f10f6c1ea6eddc781932eeddd65a7cdfec406421c787ad1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_tests_griffe-0.2.0-py3-none-any.whl
| Download URL | swarmauri_tests_griffe-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8112ecca74c3c3a6699ba2cf3e1f4562f06c4c16b19e9b5e05a84cd6c87e0ff
|
|
BLAKE2b-256 checksum How to use checksums |
f1f1d7aa43000b0fc68647da1da1d05305c191178c39489be33de53f970ab333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|