Skip to main content

Pytest plugin that turns Griffe inspection warnings into failing quality gates for Swarmauri packages.

Project description

Swarmauri Logo

PyPI - Downloads Repository Hits PyPI - Supported Python Versions PyPI - License PyPI - Latest Release


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.toml settings.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_tests_griffe-0.2.0.dev7.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarmauri_tests_griffe-0.2.0.dev7-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_tests_griffe-0.2.0.dev7.tar.gz.

File metadata

  • Download URL: swarmauri_tests_griffe-0.2.0.dev7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_tests_griffe-0.2.0.dev7.tar.gz
Algorithm Hash digest
SHA256 101a7b29baf8c0c6600ea97f19d15ff9c140bf8d6b10a1842be53b7bd796f16d
MD5 650cb750c7db22e4622a2b92d1b87c12
BLAKE2b-256 f51679f49a0c07edfa097b79fe6a429c07f302e7a9764c47fd3112bcc49134f7

See more details on using hashes here.

File details

Details for the file swarmauri_tests_griffe-0.2.0.dev7-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_tests_griffe-0.2.0.dev7-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_tests_griffe-0.2.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f9ec7cb9246a326b1e4551b6f9ed85a5c34e3987d258d27106627cad447d65
MD5 54ce80c900b055b28d46d5632c9bd6fe
BLAKE2b-256 8449dbad4c5ddc1147f618e318ce2ccf03b093af382e0488b1a2afb325942d91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page