| Conditions | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import autopep8 |
||
| 18 | def run(self, |
||
| 19 | filename, |
||
| 20 | file, |
||
| 21 | max_line_length: int=80, |
||
| 22 | tab_width: int=SpacingHelper.DEFAULT_TAB_WIDTH, |
||
| 23 | pep_ignore: typed_list(str)=(), |
||
| 24 | pep_select: typed_list(str)=()): |
||
| 25 | """ |
||
| 26 | Detects and fixes PEP8 incompliant code. This bear will not change |
||
| 27 | functionality of the code in any way. |
||
| 28 | |||
| 29 | :param max_line_length: Maximum number of characters for a line. |
||
| 30 | :param tab_width: Number of spaces per indent level. |
||
| 31 | :param pep_ignore: A list of errors/warnings to ignore. |
||
| 32 | :param pep_select: A list of errors/warnings to exclusively apply. |
||
| 33 | """ |
||
| 34 | return self.lint(filename, |
||
| 35 | file, |
||
| 36 | ignore=pep_ignore, |
||
| 37 | select=pep_select, |
||
| 38 | max_line_length=max_line_length, |
||
| 39 | indent_size=tab_width) |
||
| 40 |