You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make pre_push_check able to pass, and fix the defects it was hiding (#138)
Closes#133. Confirms #135 resolved by #137.
pre_push_check.py promised "run this before pushing to ensure GitHub Actions
won't fail" and could not pass. It shelled out to bare black/flake8/mypy/pytest,
so it ran whatever was first on PATH -- Anaconda's mypy 1.19 rather than the
project's 2.3, reporting 27 missing-stub errors for stubs pyproject declares.
Tools now run under the script's own interpreter.
Its flake8 step reported 91 findings. Four were real defects, including a
remote program wrapped in an outer f-string, so {torch.__version__}, {i},
{props.name} and {e} interpolated locally and the test raised NameError before
sending anything; and json.loads with no module-level import, swallowed by a
bare except. The other 74 were one deliberate pattern -- standalone scripts
that adjust sys.path or the environment before importing the package they
exercise -- now recorded once in .flake8.
Also fixes two things that made master red after its tests had passed, in
steps that never run on a pull request: the coverage-badge updater treated a
deliberately absent badge (#115) as an error, and the follow-on step pushed
with nothing to push. And the dependabot advisory against black, which stayed
open because it points at docs/requirements.txt, where black arrives
transitively and was unconstrained.
0 commit comments