Skip to content

Commit

Permalink
Pass mypy and link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Sep 18, 2024
1 parent 662af2b commit c1a9fb7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
10 changes: 5 additions & 5 deletions jaraco/home/report-spam-call.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand All @@ -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,
):
"""
Expand All @@ -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(
Expand Down
25 changes: 25 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,28 @@ explicit_package_bases = True
disable_error_code =
# Disable due to many false positives
overload-overlap,

# 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
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ type = [
"pytest-mypy",

# local
"lxml-stubs",
"jaraco.compat>=4.2.2", # py.typed; not necessary at runtime
]


[tool.setuptools_scm]


[tool.pytest-enabler.mypy]
# Disabled due to jaraco/skeleton#143

0 comments on commit c1a9fb7

Please sign in to comment.