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.
1 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
2 MyLovelyCompanyTeamProjectComponent # NOT DRY
4 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
5 MyLovelyCompanyTeamProjectComponent as component # DRY
8 # Please keep __all__ alphabetized within each category.
11 # Super-special typing primitives.
16 # ABCs (from collections.abc).
17 'AbstractSet', # collections.abc.Set.
21 # Concrete collection types.
29 'NamedTuple', # Not really a type.
38 # builtin types and objects
46 # user-defined types and objects
48 Cheese("Wensleydale"),
52 if 'PYTHON' in os.environ:
53 add_compiler(compiler_from_env())
55 # for compiler in compilers.values():
56 # add_compiler(compiler)
57 add_compiler(compilers[(7.0, 32)])
58 # add_compiler(compilers[(7.1, 64)])
60 # Comment before function.
61 def inline_comments_in_brackets_ruin_everything():
63 parameters.children = [
68 parameters.children = [
71 children[-1], # type: ignore
74 parameters.children = [
75 parameters.children[0], # (2 what if this was actually long
77 parameters.children[-1], # )2
79 parameters.children = [parameters.what_if_this_was_actually_long.children[0], body, parameters.children[-1]] # type: ignore
80 if (self._proc is not None
81 # has the child process finished?
82 and self._returncode is None
83 # the child process has finished, but the
84 # transport hasn't been notified yet?
85 and self._proc.poll() is None):
87 # no newline before or after
99 ############################################################################
114 for element in collection # yup
115 if element is not None # right
121 for element in collection
123 if element is not None
126 # This one is actually too long to fit in a single line.
127 element.split('\n', 1)[0]
129 for element in collection.select_elements()
131 if element is not None
137 # and round and round we go
138 # and round and round we go
144 Node(statement, result),
145 Leaf(token.NEWLINE, '\n') # FIXME: \r\n?
149 CONFIG_FILES = [CONFIG_FILE, ] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final
152 def _init_host(self, parsed) -> None:
153 if (parsed.hostname is None or # type: ignore
154 not parsed.hostname.strip()):
158 a = "type comment with trailing space" # type: str
160 #######################
161 ### SECTION COMMENT ###
162 #######################
165 instruction()#comment with bad spacing
174 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
175 MyLovelyCompanyTeamProjectComponent, # NOT DRY
177 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
178 MyLovelyCompanyTeamProjectComponent as component, # DRY
181 # Please keep __all__ alphabetized within each category.
184 # Super-special typing primitives.
188 # ABCs (from collections.abc).
189 "AbstractSet", # collections.abc.Set.
192 # Concrete collection types.
200 "NamedTuple", # Not really a type.
210 # builtin types and objects
218 # user-defined types and objects
220 Cheese("Wensleydale"),
224 if "PYTHON" in os.environ:
225 add_compiler(compiler_from_env())
227 # for compiler in compilers.values():
228 # add_compiler(compiler)
229 add_compiler(compilers[(7.0, 32)])
230 # add_compiler(compilers[(7.1, 64)])
233 # Comment before function.
234 def inline_comments_in_brackets_ruin_everything():
236 parameters.children = [children[0], body, children[-1]] # (1 # )1
237 parameters.children = [
240 children[-1], # type: ignore
243 parameters.children = [
244 parameters.children[0], # (2 what if this was actually long
246 parameters.children[-1], # )2
248 parameters.children = [parameters.what_if_this_was_actually_long.children[0], body, parameters.children[-1]] # type: ignore
250 self._proc is not None
251 # has the child process finished?
252 and self._returncode is None
253 # the child process has finished, but the
254 # transport hasn't been notified yet?
255 and self._proc.poll() is None
258 # no newline before or after
276 ############################################################################
291 element for element in collection if element is not None # yup # yup # right
297 for element in collection
299 if element is not None
302 # This one is actually too long to fit in a single line.
303 element.split("\n", 1)[0]
305 for element in collection.select_elements()
307 if element is not None
313 # and round and round we go
314 # and round and round we go
319 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
327 + SHARED_CONFIG_FILES
333 def _init_host(self, parsed) -> None:
334 if parsed.hostname is None or not parsed.hostname.strip(): # type: ignore
338 a = "type comment with trailing space" # type: str
340 #######################
341 ### SECTION COMMENT ###
342 #######################
345 instruction() # comment with bad spacing