beartype / pytest-beartype

A pytest plugin to automatically run `beartype` on your test cases.
MIT License
9 stars 1 forks source link

[Feature Request] Add support for package denylist #8

Closed frrad closed 5 days ago

frrad commented 2 months ago

Thank you so much for adding the * feature from https://github.com/beartype/pytest-beartype/issues/6 so quickly!!!

It works great! Perhaps predictably though, some of my packages don't pass. I'd like to be able to do "everything, except for x, y, z" so that I can fix the broken ones gradually while still opting in new packages automatically.

leycec commented 2 months ago

...heh. This intersects exactly with @beartype feature request beartype/beartype#407. Unfortunately, it looks like this is a tag-team effort, @tusharsadhwani. Specifically:

Sadly, I'm the hold-up here. Multiple users are now beseeching the heavens for this. So, this will definitely happen. But... I'm just sooo slow. I promise to do this as soon as feasible. But... it's best not to trust my promises. Therefore, I also promise to immediately merge any PR implementing beartype/beartype#407.

If anyone's interested in a PR, let me know and I'd be just delighted to guide your capable keyboard fingers. :smile:

leycec commented 5 days ago

Resolved by e6bf380. Thanks a heap overflow to intrepid QA guru @tusharsadhwani for the recent resolution at PR #9! Problematic packages may now be ignored by passing a package blacklist (ban list, deny list) as the new --beartype-skip-packages option: e.g.,

--beartype-skip-packages='bad_package,good_package.awful_submodule'

pytest-beartype 0.2.0 flexes for GitHub