RussBaz / enforce

Python 3.5+ runtime type checking for integration testing and data validation
543 stars 21 forks source link

Disable option #4

Closed michaeldnelson closed 7 years ago

michaeldnelson commented 8 years ago

Hmmm. I would like a way to disable these checks globally. For example with a configured variable or by invoking python with the optimize flag (python -o). I don't see any switches in the code. Is this possible?

RussBaz commented 8 years ago

I will definitely consider this and I think it is a good addition. However, I have very little time nowadays, so I can't say when this may be implemented. Still, I will try to push it in if I ever finish the second release of this project.

Also, the work is done in the dev branch. If you would like to help, please have a look.

RussBaz commented 7 years ago

This feature was added and merged. It will be fully available in 0.3.0 release (#25).

It is implemented as a global settings object.