Skip to content

Commit

Permalink
FIX lint errors
Browse files Browse the repository at this point in the history
- Sets some ignore lint checks comments and sets max line length to 120.
  • Loading branch information
mateuszkrasucki committed Feb 11, 2020
1 parent 51a9122 commit e76b282
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ include-naming-hint=yes
[FORMAT]

expected-line-ending-format=LF
max-line-length=79
max-line-length=120


[MISCELLANEOUS]
Expand Down
13 changes: 2 additions & 11 deletions esi_bot/bot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""ESI slack bot for tweetfleet."""


import os
import time

Expand All @@ -11,16 +10,8 @@
from esi_bot import LOG
from esi_bot import request
from esi_bot.processor import Processor
from esi_bot.commands import ( # pylint: disable=unused-import; # noqa F401
get_help,
issue_details,
issue_new,
links,
misc,
status_esi,
status_server,
type_info
)
from esi_bot.commands import ( # noqa: F401; # pylint: disable=unused-import
get_help, issue_details, issue_new, status_esi, status_server, type_info)


def main():
Expand Down
1 change: 1 addition & 0 deletions esi_bot/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""ESI Slack bot commands."""
2 changes: 1 addition & 1 deletion esi_bot/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def request(match, msg):
except ValueError:
status = str(res.status_code)
else:
status = "{} {}".format(status.value, status.name)
status = "{} {}".format(status.value, status.name) # pylint: disable=E1101

if "--headers" in msg.args:
res = {"response": content, "headers": dict(res.headers)}
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ addopts = -rx -rs -v --cov-report term-missing
[flake8]
exclude = *.pyc,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.ropeproject,.idea,.venv*,.pypy
ignore = E123,D202,D203,D413
max-line-length = 120

0 comments on commit e76b282

Please sign in to comment.