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 Aug 25, 2024
1 parent b8124bf commit 8b1e11c
Show file tree
Hide file tree
Showing 3 changed files with 35 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
29 changes: 29 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ type = [
"pytest-mypy",

# local
"lxml-stubs"
]


[tool.setuptools_scm]


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

0 comments on commit 8b1e11c

Please sign in to comment.