Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDDEP39d124190019: mypy: properly type get/put methods, as well deposit_requests_types dict
rDDEPdd06930548f3: tox.ini: pass DJANGO_SETTINGS_MODULE to mypy environment
rDDEP4bb1de4415b0: Makefile.local: sync typecheck target with global Makefile.python
rDDEP17b3ee474e11: mypy: ignore psycopg2
rDDEP00440eb99622: requirements-test.txt: add back deps from master
rDDEP34153ef59b77: tox: add mypy environment
rDDEP422b92fc1910: init.py: switch to documented way of extending path
rDDEP0b3d526e956a: typing: convert leftover variable annotation to comments
rDDEPfd8db57691c3: typing: minimal changes to make a no-op mypy run pass
rDDEP2499370d740e: models: add migration to on_delete=protect
Diff Detail
- Repository
- rDDEP Push deposit
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/179/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/179/console
- models: add required on_delete kwarg to ForeignKey
- models: add migration to on_delete=protect
- typing: minimal changes to make a no-op mypy run pass
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/181/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/181/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/182/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/182/console
swh/deposit/migrations/0017_auto_20190925_0906.py | ||
---|---|---|
21 ↗ | (On Diff #6829) | This is out of scope for this diff, this is D2031's As the diff is stacked (i don't see the Depends on D2031 in the diff description but you probably added the diff's dependency yourself), the build should be ok. |
- typing: minimal changes to make a no-op mypy run pass
- typing: convert leftover variable annotation to comments
- init.py: switch to documented way of extending path
this is now (also) waiting for an upstream release of django-stubs compatible with mypy >= 0.730
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/183/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/183/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/184/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/184/console
It comes from the django-stubs PyPI package, which is added by this diff to requirements-test.txt. But. The most recent release of django-stubs is incompatible (and declared as such in its dependencies) with the most recent release of mypy (0.730). I'm waiting for a new release of django-stubs to be made by upstream. See discussion here: https://github.com/typeddjango/django-stubs/issues/160
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/187/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/187/console
removing this form the review queue for now, as it will need py3.7 in the CI to pass tests anyway
- typing: minimal changes to make a no-op mypy run pass
- typing: convert leftover variable annotation to comments
- init.py: switch to documented way of extending path
- tox: add mypy environment
- requirements-test.txt: add back deps from master
- Makefile.local: sync typecheck target with global Makefile.python
- mypy: ignore psycopg2
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/193/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/193/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/194/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/194/console
tox.ini | ||
---|---|---|
37 ↗ | (On Diff #7601) | Adding setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing here will fix the mypy execution with tox |
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tox/195/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tox/195/console
Build is green
See https://jenkins.softwareheritage.org/job/DDEP/job/tox/196/ for more details.