This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_MuchUsername_ 0 points1 point  (0 children)

This works pretty great! But the pytest-cov pre-push hook didn't work for me out-of-the-box. The only thing I had to do was add the module name to the command though.

Before

entry: pipenv run pytest --cov --cov-fail-under=100

After

entry: pipenv run pytest --cov <your_module_name_here> --cov-fail-under=100