diff --git a/jaraco/home/report-spam-call.py b/jaraco/home/report-spam-call.py index 5f284ea..3a9b5ed 100644 --- a/jaraco/home/report-spam-call.py +++ b/jaraco/home/report-spam-call.py @@ -4,11 +4,11 @@ import autocommand import tempora from splinter import Browser + from jaraco.compat.py38 import r_fix from . import contact as contact_info - DROPPED_CALL = '2' @@ -28,7 +28,7 @@ def report_spam_call( comment='', close=False, browser='firefox', - when: tempora.parse = datetime.datetime.now(), # type: ignore + when: tempora.parse = datetime.datetime.now(), dialed=None, ): """ @@ -39,9 +39,9 @@ def report_spam_call( browser.visit('https://www.donotcall.gov/report.html') browser.find_by_value('Continue').click() browser.fill('PhoneTextBox', clean_phone(dialed or contact.phone)) - browser.fill('DateOfCallTextBox', when.strftime('%m/%d/%Y')) # type: ignore - browser.select('TimeOfCallDropDownList', when.strftime('%H')) # type: ignore - browser.select('ddlMinutes', when.strftime('%M')) # type: ignore + browser.fill('DateOfCallTextBox', when.strftime('%m/%d/%Y')) + browser.select('TimeOfCallDropDownList', when.strftime('%H')) + browser.select('ddlMinutes', when.strftime('%M')) browser.choose('PrerecMsg', 'PrerecordMessageYESRadioButton') browser.choose('TextMsg', 'PhoneCallRadioButton') browser.select( diff --git a/mypy.ini b/mypy.ini index 83b0d15..0686233 100644 --- a/mypy.ini +++ b/mypy.ini @@ -12,3 +12,32 @@ explicit_package_bases = True # Disable overload-overlap due to many false-positives disable_error_code = overload-overlap + +# jaraco/jaraco.compat#3 +[mypy-jaraco.compat.*] +ignore_missing_imports = True + +# jaraco/jaraco.mongodb#41 +[mypy-jaraco.mongodb.*] +ignore_missing_imports = True + +# jaraco/tempora#35 +[mypy-tempora.*] +ignore_missing_imports = True + +# jaraco/jaraco.develop#20 +# Lucretiel/autocommand#38 +[mypy-autocommand.*] +ignore_missing_imports = True + +# cobrateam/splinter#1222 +[mypy-splinter.*] +ignore_missing_imports = True + +# cherrypy/cherrypy#1510 +[mypy-cherrypy.*] +ignore_missing_imports = True + +# https://bugs.launchpad.net/mockproc/+bug/2029024 +[mypy-mockproc.*] +ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index d3cec7b..961d291 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,11 +78,8 @@ type = [ "pytest-mypy", # local + "lxml-stubs" ] [tool.setuptools_scm] - - -[tool.pytest-enabler.mypy] -# Disabled due to jaraco/skeleton#143