Page MenuHomeSoftware Heritage

requirements-test: Ensure pinned mypy version is used with tox
ClosedPublic

Authored by anlambert on Jun 30 2022, 12:33 PM.

Details

Summary

djangorestframework-stubs 1.7.0 pin mypy to > 0.950 in its requirements,
thus the mypy pinning to 0.942 in tox.ini is no longer respected and
mypy 0.961 is used when running tox, leading to new typing errors
(see that Jenkins log and grep for mypy).

So ensure mypy 0.942 is used until we bump mypy version used by swh.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8056 (id=29070)

Rebasing onto 9e89db680b...

Current branch diff-target is up to date.
Changes applied before test
commit 70c242f2d98c90883e6b7533be61fca6b86bc1cc
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Jun 30 12:24:53 2022 +0200

    requirements-test: Ensure pinned mypy version is used with tox
    
    djangorestframework-stubs 1.7.0 pin mypy to > 0.950 in its requirements,
    thus the mypy pinning to 0.942 in tox.ini is no longer respected and
    mypy 0.961 is used when running tox, leading to new typing errors.
    
    So ensure mypy 0.942 is used until we bump mypy version used by swh.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1906/ for more details.

ardumont added a subscriber: ardumont.

thx (and i guess that fixes the master build as well).

This revision is now accepted and ready to land.Jun 30 2022, 1:54 PM