All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
7 Given python(Some Python without blank lines):
9 """ This is a simple test docstring """
14 '''This is another simple test docstring'''
48 Execute(Blank lines should be added appropriately):
49 let g:ale_fixers = {'python': ['add_blank_lines_for_python_control_statements']}
52 Expect python(Newlines should be added):
54 """ This is a simple test docstring """
60 '''This is another simple test docstring'''
103 Given python(A file with a main block):
111 if __name__ == '__main__':
114 Execute(Fix the file):
115 let g:ale_fixers = {'python': ['add_blank_lines_for_python_control_statements']}
118 Expect python(extra newlines shouldn't be added to the main block):
126 if __name__ == '__main__':
130 Given python(A file with variables/docstring that start with a control statement):
133 This is a docstring that contains an
134 break control statement and also contains a
135 return something funny.
138 continue_some_var = True
139 forward_something = False
142 continue_some_var and
148 Execute(Fix the file):
149 let g:ale_fixers = {'python': ['add_blank_lines_for_python_control_statements']}
152 Expect python(Extra new lines are not added to the file):
155 This is a docstring that contains an
156 break control statement and also contains a
157 return something funny.
160 continue_some_var = True
161 forward_something = False
164 continue_some_var and