(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)
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDWAPPSda39599f3484: mypy: Fix errors with v0.900 release
Diff Detail
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
Comment Actions
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.