Skip to content

Use pytest-beartype-tests plugin#2144

Merged
adamtheturtle merged 2 commits into
mainfrom
use-pytest-beartype-tests-plugin
Apr 19, 2026
Merged

Use pytest-beartype-tests plugin#2144
adamtheturtle merged 2 commits into
mainfrom
use-pytest-beartype-tests-plugin

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Apr 19, 2026

Copy link
Copy Markdown
Member

This PR adds the pytest-beartype-tests dev dependency and removes redundant pytest_collection_modifyitems / @beartype wiring from conftest where it duplicated the plugin.

The plugin registers via pytest11 and applies @beartype to collected test functions, matching the previous local hook behavior (see the upstream README).


Note

Low Risk
Low risk: changes are limited to test tooling/dependencies and removal of a redundant pytest collection hook, with no production code impact.

Overview
Test-time runtime type checking is now provided via the pytest-beartype-tests plugin instead of a local pytest_collection_modifyitems hook in tests/conftest.py.

The PR adds pytest-beartype-tests to dev dependencies and uv.lock, removes the now-unused beartype wiring from conftest.py, and adjusts config/metadata (including dropping pytest_collection_modifyitems from vulture ignores and adding an empty [dependency-groups] section).

Reviewed by Cursor Bugbot for commit 6cd6356. Bugbot is set up for automated code reviews on this repo. Configure here.

Replace manual pytest_collection_modifyitems hooks with the
https://github.com/adamtheturtle/pytest-beartype-tests dev dependency.
@adamtheturtle adamtheturtle merged commit 60b24a0 into main Apr 19, 2026
15 checks passed
@adamtheturtle adamtheturtle deleted the use-pytest-beartype-tests-plugin branch April 19, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant