Skip to content

Commit 91d4ee2

Browse files
committed
Fix linting errors
1 parent 1f7a287 commit 91d4ee2

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ install:
88
# command to run tests
99
script:
1010
- flake8 . --max-line-length=120
11-
- pep257 . --ignore=D202
11+
- pep257 . --ignore=D202 --ignore=D211

linter.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def find_errors(self, output):
3636
Calls parse_message for each error found.
3737
3838
"""
39-
4039
output_json = sublime.decode_value(output)
4140

4241
# persist.debug('output_json:"{}", file: "{}"'.format(output_json, self.filename))
@@ -46,11 +45,7 @@ def find_errors(self, output):
4645
yield self.parse_message(message)
4746

4847
def parse_message(self, message):
49-
"""
50-
Parse message object into standard elements of an error and return them.
51-
52-
"""
53-
48+
"""Parse message object into standard elements of an error and return them."""
5449
error_message = message['message']
5550
line = message['line'] - 1
5651
col = message['col']
@@ -68,6 +63,14 @@ def parse_message(self, message):
6863
# ignore info messages by setting message to None
6964
message = None
7065

71-
persist.debug('message -- msg:"{}", line:{}, col:{}, error: {}, warning: {}, message_obj:{}'.format(error_message, line, col, error, warning, message))
66+
message = 'message -- msg:"{}", line:{}, col:{}, error: {}, warning: {}, message_obj:{}'
67+
persist.debug(message.format(
68+
error_message,
69+
line,
70+
col,
71+
error,
72+
warning,
73+
message,
74+
))
7275

7376
return message, line, col, error, warning, error_message, None

0 commit comments

Comments
 (0)