File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ through a custom wrapper for the PEP 8 library::
68
68
69
69
LINES_SLICE = slice(14, -20)
70
70
71
- class PEP8 (pycodestyle.StyleGuide):
71
+ class StyleGuide (pycodestyle.StyleGuide):
72
72
"""This subclass of pycodestyle.StyleGuide will skip the first and last lines
73
73
of each file."""
74
74
@@ -77,11 +77,11 @@ through a custom wrapper for the PEP 8 library::
77
77
assert line_offset == 0
78
78
line_offset = LINES_SLICE.start or 0
79
79
lines = pycodestyle.readlines(filename)[LINES_SLICE]
80
- return super(PEP8 , self).input_file(
80
+ return super(StyleGuide , self).input_file(
81
81
filename, lines=lines, expected=expected, line_offset=line_offset)
82
82
83
83
if __name__ == '__main__':
84
- style = PEP8 (parse_argv=True, config_file=True)
84
+ style = StyleGuide (parse_argv=True, config_file=True)
85
85
report = style.check_files()
86
86
if report.total_errors:
87
87
raise SystemExit(1)
You can’t perform that action at this time.
0 commit comments