Skip to content

Add missing test requirements

zen requested to merge add-missing-test-requirements into master

Without these, mypy fails with:

mypy: commands[0]> python -m mypy .
membership-retirements-do-nothing.py:143: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
fabric_tpa/prometheus.py:25: error: Library stubs not installed for "requests"  [import-untyped]
fabric_tpa/ui.py:33: error: Library stubs not installed for "paramiko.client"  [import-untyped]
fabric_tpa/ui.py:202: error: Library stubs not installed for "psutil"  [import-untyped]
fabric_tpa/ui.py:202: note: Hint: "python3 -m pip install types-psutil"
fabric_tpa/silence.py:27: error: Library stubs not installed for "dateparser"  [import-untyped]
fabric_tpa/silence.py:27: note: Hint: "python3 -m pip install types-dateparser"
fabric_tpa/silence.py:34: error: Library stubs not installed for "requests"  [import-untyped]
fabric_tpa/silence.py:35: error: Library stubs not installed for "requests.exceptions"  [import-untyped]
fabric_tpa/kgb.py:32: error: Library stubs not installed for "requests"  [import-untyped]
fabric_tpa/host.py:412: error: Library stubs not installed for "humanfriendly"  [import-untyped]
fabric_tpa/host.py:412: note: Hint: "python3 -m pip install types-humanfriendly"
fabric_tpa/gitolite.py:62: error: Library stubs not installed for "requests"  [import-untyped]
fabric_tpa/gitolite.py:62: note: Hint: "python3 -m pip install types-requests"
fabric_tpa/gitolite.py:64: error: Library stubs not installed for "paramiko.ssh_exception"  [import-untyped]
fabric_tpa/ganeti.py:38: error: Library stubs not installed for "paramiko.ssh_exception"  [import-untyped]
fabric_tpa/ganeti.py:38: note: Hint: "python3 -m pip install types-paramiko"
fabric_tpa/ganeti.py:38: note: (or run "mypy --install-types" to install all missing stub packages)
fabric_tpa/ganeti.py:38: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
fabric_tpa/ganeti.py:38: error: Library stubs not installed for "paramiko"  [import-untyped]
fabric_tpa/reboot.py:45: error: Library stubs not installed for "paramiko.ssh_exception"  [import-untyped]
fabric_tpa/reboot.py:45: error: Library stubs not installed for "paramiko"  [import-untyped]
Found 14 errors in 8 files (checked 31 source files)
mypy: exit 1 (0.99 seconds) /home/user/proj/tor/tpa/repos/fabric-tasks> python -m mypy . pid=385596

Merge request reports

Loading