Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass mypy and link issues #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading