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
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 30156
Build 47138: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 47137: arc lint + arc unit

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