Page MenuHomeSoftware Heritage

mypy: Fix errors with v0.900 release
ClosedPublic

Authored by anlambert on Jun 9 2021, 11:37 AM.

Details

Summary
(swh) ✔ ~/swh/swh-environment/swh-web [master|⚑ 65] 
11:27 $ make check
pre-commit run --all-files
Trim Trailing Whitespace.................................................Passed
Check JSON...............................................................Passed
Check Yaml...............................................................Passed
flake8...................................................................Passed
codespell................................................................Passed
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

swh/web/__init__.py:4: error: Argument 1 to "extend_path" has incompatible type "Iterable[str]"; expected "List[str]"
swh/__init__.py:4: error: Argument 1 to "extend_path" has incompatible type "Iterable[str]"; expected "List[str]"
swh/web/api/renderers.py:6: error: Library stubs not installed for "yaml" (or incompatible with Python 3.7)
swh/web/api/renderers.py:6: note: Hint: "python3 -m pip install types-PyYAML"
swh/web/common/utils.py:12: error: Library stubs not installed for "docutils.core" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils.parsers.rst" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils.parsers" (or incompatible with Python 3.7)
swh/web/common/utils.py:14: error: Library stubs not installed for "docutils.utils" (or incompatible with Python 3.7)
swh/web/common/utils.py:15: error: Library stubs not installed for "docutils.writers.html5_polyglot" (or incompatible with Python 3.7)
swh/web/common/origin_save.py:14: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/admin/deposit.py:6: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/admin/deposit.py:6: note: Hint: "python3 -m pip install types-requests"
swh/web/admin/deposit.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
swh/web/admin/deposit.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
swh/web/admin/deposit.py:7: error: Library stubs not installed for "requests.auth" (or incompatible with Python 3.7)
swh/web/tests/common/test_origin_save.py:13: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/misc/urls.py:8: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:14: error: Library stubs not installed for "docutils.nodes" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:14: note: Hint: "python3 -m pip install types-docutils"
swh/web/api/apidoc.py:14: error: Library stubs not installed for "docutils" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:15: error: Library stubs not installed for "docutils.parsers.rst" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:15: error: Library stubs not installed for "docutils.parsers" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:16: error: Library stubs not installed for "docutils.utils" (or incompatible with Python 3.7)
swh/web/api/views/graph.py:10: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/tests/api/views/test_origin.py:11: error: Library stubs not installed for "requests.utils" (or incompatible with Python 3.7)

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21828
Build 33947: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 33946: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D5834 (id=20866)

Rebasing onto 89c0111746...

Current branch diff-target is up to date.
Changes applied before test
commit da39599f3484e9a4adbc3ae4a50e55b8d711c992
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Wed Jun 9 11:36:33 2021 +0200

    mypy: Fix errors with v0.900 release

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

This revision is now accepted and ready to land.Jun 9 2021, 11:52 AM
This revision was automatically updated to reflect the committed changes.