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()):
157 #######################
158 ### SECTION COMMENT ###
159 #######################
171 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
172 MyLovelyCompanyTeamProjectComponent, # NOT DRY
174 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
175 MyLovelyCompanyTeamProjectComponent as component, # DRY
178 # Please keep __all__ alphabetized within each category.
181 # Super-special typing primitives.
185 # ABCs (from collections.abc).
186 "AbstractSet", # collections.abc.Set.
189 # Concrete collection types.
197 "NamedTuple", # Not really a type.
207 # builtin types and objects
215 # user-defined types and objects
217 Cheese("Wensleydale"),
221 if "PYTHON" in os.environ:
222 add_compiler(compiler_from_env())
224 # for compiler in compilers.values():
225 # add_compiler(compiler)
226 add_compiler(compilers[(7.0, 32)])
227 # add_compiler(compilers[(7.1, 64)])
229 # Comment before function.
230 def inline_comments_in_brackets_ruin_everything():
232 parameters.children = [children[0], body, children[-1]] # (1 # )1
233 parameters.children = [
236 children[-1], # type: ignore
239 parameters.children = [
240 parameters.children[0], # (2 what if this was actually long
242 parameters.children[-1], # )2
244 parameters.children = [parameters.what_if_this_was_actually_long.children[0], body, parameters.children[-1]] # type: ignore
246 self._proc is not None
247 # has the child process finished?
248 and self._returncode is None
249 # the child process has finished, but the
250 # transport hasn't been notified yet?
251 and self._proc.poll() is None
254 # no newline before or after
272 ############################################################################
287 element for element in collection if element is not None # yup # yup # right
293 for element in collection
295 if element is not None
298 # This one is actually too long to fit in a single line.
299 element.split("\n", 1)[0]
301 for element in collection.select_elements()
303 if element is not None
309 # and round and round we go
310 # and round and round we go
315 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
323 + SHARED_CONFIG_FILES
329 def _init_host(self, parsed) -> None:
330 if parsed.hostname is None or not parsed.hostname.strip(): # type: ignore
334 #######################
335 ### SECTION COMMENT ###
336 #######################