Closed tusharsadhwani closed 5 days ago
Brilliant! I rejoice to know you. This is me awkwardly saying...
You're amazing.
srsly. I meant to give you a detailed writeup integrating this BeartypeConf.claw_skip_package_names
black magic with the pytest
CLI. But I guess you got there first and just reverse-engineered all of this mostly undocumented madness without me. If I had money, I'd hire you to do stuff. Lots of stuff.
Sadly, I have no money. I can only thank you. Please accept this ceremonial Canadian turkey: :turkey:
I'll probably have to wait until this arg has been released on PyPI. Will it be part of 0.19?
Testing! Forgot about that. Testing is... cumbersome. Here's what @beartype's test suite does:
skippable_submodule.py
. The following two-liner should suffice if you'd rather not bludgeon yourself over the head with the full skippable_submodule.py
: e.g.,# Assert that a PEP 526-compliant assignment statement assigning an object
# violating the type hint annotating that statement raises *NO* exception.
this_should_fail_but_doesnt: str = b'Totally not a string, but nobody cares.'
assert isinstance(this_should_fail_but_doesnt, bytes)
skippable_submodule.py
by passing an option resembling --beartype-skip-packages='skippable_submodule'
. Maybe? No idea.tox
passes. Pray harder than you have ever prayed.Thanks again being so awesome, @tusharsadhwani. Kali herself surely shines upon you.
I'll probably have to wait until this arg has been released on PyPI. Will it be part of 0.19?
Totally. 0.19.0 is the plan. Alternately, users could be forced to install the live @beartype if they really want this. I am fine with forcing users to do stuff they don't want to do. Let them eat git
!
Totally up to you. Thanks so much yet again. I get the sinking feeling I'd better start hacking on 0.19 a lot harder. :smile:
You already hack at an incredible pace. There's no need to worry.
oh right, i can ship this now.
This should work, all that's left is to actually verify if it does or not.