Page MenuHomePhabricator

[lint] run mypy with --install-types and --non-interactive options
ClosedPublic

Authored by PiRK on Apr 10 2023, 12:32.

Details

Summary

This fixes the following class of error messages by automatically installing a PEP 561 stub package if available :

>>> Lint for contrib/teamcity/build-configurations.py:

   Error  () mypy found an issue:
    Library stubs not installed for "yaml"  [import]
Test Plan

arc lint --everything

Add import toml in some python file and check that it does not cause any new error, and that the python package types-toml is installed after running arc lint (pip list | grep types)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable