Skip to content

Commit 37b0cb6

Browse files
committed
pep257 linting
1 parent 18984d1 commit 37b0cb6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

linter.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ class Pylint(PythonLinter):
3939

4040
@property
4141
def tempfile_suffix(self):
42-
"""
43-
Use the real file if possible
44-
"""
42+
"""Use the real file if possible."""
4543
mode = persist.settings.get('lint_mode', 'background')
4644
if mode in ('load/save', 'save only') or not self.view.is_dirty():
4745
return '-'
@@ -258,9 +256,7 @@ def tempfile_suffix(self):
258256
]
259257

260258
def build_args(self, settings):
261-
"""
262-
Attach paths so pylint can find more modules
263-
"""
259+
"""Attach paths so pylint can find more modules."""
264260
args = super().build_args(settings)
265261
if settings.get('paths'):
266262
init_hook = '''--init-hook=import sys;{}'''.format(
@@ -277,9 +273,7 @@ def split_match(self, match):
277273
Return the components of the error message.
278274
279275
We override this to deal with the idiosyncracies of pylint's error messages.
280-
281276
"""
282-
283277
match, line, col, error, warning, message, near = super().split_match(match)
284278

285279
show_codes = self.get_merged_settings()['show-codes']

0 commit comments

Comments
 (0)