Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
awdeorio committed Sep 21, 2018
1 parent b01abd7 commit 14060fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions mailmerge/api.py
Expand Up @@ -13,8 +13,9 @@
import configparser
import getpass
import datetime
from backports import csv # UTF8 support in Python 2.x
import future.backports.email as email # UTF8 support in Python 2.x
# NOTE: Python 2.x UTF8 support requires csv and email backports
from backports import csv
import future.backports.email as email # pylint: disable=useless-import-alias
import future.backports.email.parser # pylint: disable=unused-import
import future.backports.email.utils # pylint: disable=unused-import
import jinja2
Expand Down Expand Up @@ -190,12 +191,15 @@ def main(sample=False,
Render an email template for each line in a CSV database.
"""
# pylint: disable=too-many-arguments,too-many-locals,too-many-branches
# pylint: disable=too-many-statements
# NOTE: this function needs a refactor, then remove ^^^
# Create a sample email template and database if there isn't one already
if sample:
create_sample_input_files(template_filename,
database_filename,
config_filename)
create_sample_input_files(
template_filename,
database_filename,
config_filename,
)
sys.exit(0)
if not os.path.exists(template_filename):
print("Error: can't find template email " + template_filename)
Expand Down
2 changes: 1 addition & 1 deletion mailmerge/smtp_dummy.py
@@ -1,7 +1,7 @@
"""Dummy SMTP API."""


class SMTP_dummy(object):
class SMTP_dummy(object): # pylint: disable=useless-object-inheritance
# pylint: disable=invalid-name, no-self-use
"""Dummy SMTP API."""

Expand Down

0 comments on commit 14060fe

Please sign in to comment.