Issues with pre-push checks

18 views
Skip to first unread message

hardikkatehara

unread,
Jul 6, 2021, 3:31:37 AM7/6/21
to oppia-dev

Hi all,
Some people are facing issues with failing pre-push checks due to mypy errors. Till now this issue has been reported for Mac but this may also fail in Ubuntu also.
The error is due to the absence of path to the installed mypy in the environment's PATH variable and absence of a package in mypy_requirements.txt.

This can be solved using the following steps:
1. If  the pre-push checks fail with the warning like: ' WARNING: The scripts dmypy, mypy, stubgen and stubtest are installed in '/Users/<username>/Library/Python/3.x/bin' which is not on PATH.' . Please add the directory(which appeared in the warning) to the environment's PATH variable for now. This can be done by adding 'export PATH="/Users/<username>/Library/Python/3.x/bin:$PATH" ' to .bashrc file.

2. Add typed-ast==1.4.2 to mypy_requirements.txt.

For more information, see here.
I am working on a fix for this.

Thanks,
Hardik


Reply all
Reply to author
Forward
0 new messages