Skip to content

Commit c09127d

Browse files
committed
Merge branch 'master' into cottsay/shell-tests
2 parents e31f37f + 35e65f6 commit c09127d

File tree

13 files changed

+48
-52
lines changed

13 files changed

+48
-52
lines changed

colcon_core/environment/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_environment_scripts(
7676
:param pkg: The package descriptor
7777
:param args: The parsed command line arguments
7878
:param list default_hooks: If none are parsed explicitly the hooks provided
79-
by :function:`create_environment_hooks` are used
79+
by :func:`create_environment_hooks` are used
8080
:param list additional_hooks: Any additional hooks which should be
8181
referenced by the generated scripts
8282
:returns: iterable of generated file paths
@@ -101,7 +101,7 @@ def create_environment_scripts_only(
101101
:param prefix_path: The prefix path
102102
:param pkg: The package descriptor
103103
:param list default_hooks: If none are parsed explicitly the hooks provided
104-
by :function:`create_environment_hooks` are used
104+
by :func:`create_environment_hooks` are used
105105
:param list additional_hooks: Any additional hooks which should be
106106
referenced by the generated scripts
107107
:returns: iterable of generated script paths

colcon_core/event_reactor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _run(self):
4242
"""
4343
Process events and notify all observers.
4444
45-
If no events are being process for :py:attribute:`TIMER_INTERVAL`
45+
If no events are being process for :attr:`TIMER_INTERVAL`
4646
seconds a :class:`TimerEvent` is being generated and processed.
4747
4848
An :class:`EventReactorShutdown` event will stop the loop.

colcon_core/executor/__init__.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def execute(
182182
:param arguments: The passed arguments
183183
184184
The deprecated API accepts the following separate arguments:
185+
185186
:param args: The parsed command line arguments
186187
:param jobs: The jobs
187188
:param on_error: The decision how to proceed when one job fails
@@ -279,14 +280,14 @@ def execute_jobs(
279280
Execute jobs.
280281
281282
The overview of the process:
282-
* One executor extension is being chosen based on the command line
283-
arguments.
284-
* Create an event controller.
285-
* Pass the event controller to the executor extension.
286-
* Pass the event queue to all jobs.
287-
* Start the event controller.
288-
* Invoke the executor extension to execute the jobs.
289-
* Join the event controller.
283+
* One executor extension is being chosen based on the command line
284+
arguments.
285+
* Create an event controller.
286+
* Pass the event controller to the executor extension.
287+
* Pass the event queue to all jobs.
288+
* Start the event controller.
289+
* Invoke the executor extension to execute the jobs.
290+
* Join the event controller.
290291
291292
:param jobs: The ordered dictionary of jobs
292293
:param on_error: The decision how to proceed when one job fails

colcon_core/location.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_config_path():
1818
"""
1919
Get the base path for configuration files.
2020
21-
:function:`set_default_config_path` must have been called before.
21+
:func:`set_default_config_path` must have been called before.
2222
2323
:returns: The base path for configuration files
2424
:rtype: Path
@@ -72,7 +72,7 @@ def get_log_path():
7272
"""
7373
Get the base path for logging.
7474
75-
:function:`set_default_log_path` must have been called before.
75+
:func:`set_default_log_path` must have been called before.
7676
7777
:returns: The base path for logging or None if logging is disabled
7878
:rtype: Path or None
@@ -147,7 +147,7 @@ def create_log_path(verb_name):
147147
"""
148148
Create a not yet existing logging directory.
149149
150-
The logging directory returned by :function:`get_log_path` must not yet
150+
The logging directory returned by :func:`get_log_path` must not yet
151151
exist on the first call of this function.
152152
If it does exist the function will append a serial number to the path until
153153
the path doesn't exist and can be created.

colcon_core/output_style/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ def add_output_style_arguments(parser, *, extensions=None):
118118
119119
:param parser: The argument parser
120120
:param extensions: The output style extensions to use, if `None` is passed
121-
use the extensions provided by
122-
:function:`get_output_style_extensions`
121+
use the extensions provided by :func:`get_output_style_extensions`
123122
"""
124123
if extensions is None:
125124
extensions = get_output_style_extensions()
@@ -160,8 +159,7 @@ def select_output_style_extension(args, *, extensions=None):
160159
161160
:param args: The parsed command line arguments
162161
:param extensions: The output style extensions to use, if `None` is passed
163-
use the extensions provided by
164-
:function:`get_output_style_extensions`
162+
use the extensions provided by :func:`get_output_style_extensions`
165163
166164
:returns: The output style extension (or None if not available)
167165
"""
@@ -180,8 +178,7 @@ def apply_output_style(args, *, extensions=None):
180178
181179
:param args: The parsed command line arguments
182180
:param extensions: The output style extensions to use, if `None` is passed
183-
use the extensions provided by
184-
:function:`get_output_style_extensions`
181+
use the extensions provided by :func:`get_output_style_extensions`
185182
"""
186183
# TODO: This approach chooses only a single extension. Should it be
187184
# possible to apply styles on top of each other, possibly ones which

colcon_core/package_augmentation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def update_descriptor(
126126
127127
Any key-value pair not explicitly mentioned above is being used to update
128128
the metadata if the key is in the list of additional argument names.
129-
See :function:`update_metadata` for details how the metadata is updated.
129+
See :func:`update_metadata` for details how the metadata is updated.
130130
131131
If the additional argument names is a list with the single value `*` all
132132
keys not explicitly mentioned above are being used to update the metadata.

colcon_core/package_discovery/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def add_package_discovery_arguments(parser, *, extensions=None):
109109
:param parser: The argument parser
110110
:param extensions: The package discovery extensions to use, if `None` is
111111
passed use the extensions provided by
112-
:function:`get_package_discovery_extensions`
112+
:func:`get_package_discovery_extensions`
113113
"""
114114
if extensions is None:
115115
extensions = get_package_discovery_extensions()
@@ -165,10 +165,10 @@ def discover_packages(
165165
:param args: The parsed command line arguments
166166
:param identification_extensions: The package identification extensions to
167167
pass to each invocation of
168-
:function:`PackageDiscoveryExtensionPoint.discover`
168+
:func:`PackageDiscoveryExtensionPoint.discover`
169169
:param discovery_extensions: The package discovery extensions to use, if
170170
`None` is passed use the extensions provided by
171-
:function:`get_package_discovery_extensions`
171+
:func:`get_package_discovery_extensions`
172172
:returns: set of
173173
:py:class:`colcon_core.package_descriptor.PackageDescriptor`
174174
:rtype: set

colcon_core/package_identification/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class IgnoreLocationException(Exception):
2121
This also excludes all recursive subdirectories from being considered.
2222
2323
It should be raised in the
24-
:function:`PackageIdentificationExtensionPoint.identify` method of package
24+
:func:`PackageIdentificationExtensionPoint.identify` method of package
2525
identification extensions.
2626
"""
2727

colcon_core/package_selection/__init__.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ def add_arguments(
7777
"""
7878
Add the command line arguments for the package selection extensions.
7979
80-
The function will call :function:`add_package_discovery_arguments` to add
80+
The function will call :func:`add_package_discovery_arguments` to add
8181
the package discovery arguments.
8282
8383
:param parser: The argument parser
8484
:param discovery_extensions: The package discovery extensions to use, if
8585
`None` is passed use the extensions provided by
86-
:function:`get_package_discovery_extensions`
86+
:func:`get_package_discovery_extensions`
8787
:param selection_extensions: The package selection extensions to use, if
8888
`None` is passed use the extensions provided by
89-
:function:`get_package_selection_extensions`
89+
:func:`get_package_selection_extensions`
9090
"""
9191
add_package_discovery_arguments(parser, extensions=discovery_extensions)
9292

@@ -142,9 +142,9 @@ def get_packages(
142142
Get the selected package decorators in topological order.
143143
144144
The overview of the process:
145-
* Get the package descriptors
146-
* Order them topologically
147-
* Select the packages based on the command line arguments
145+
* Get the package descriptors
146+
* Order them topologically
147+
* Select the packages based on the command line arguments
148148
149149
:param additional_argument_names: A list of additional arguments to
150150
consider
@@ -154,16 +154,16 @@ def get_packages(
154154
immediate upstream category which included the dependency
155155
:param discovery_extensions: The package discovery extensions to use, if
156156
`None` is passed use the extensions provided by
157-
:function:`get_package_discovery_extensions`
157+
:func:`get_package_discovery_extensions`
158158
:param identification_extensions: The package identification extensions to
159159
use, if `None` is passed use the extensions provided by
160-
:function:`get_package_identification_extensions`
160+
:func:`get_package_identification_extensions`
161161
:param augmentation_extensions: The package augmentation extensions, if
162162
`None` is passed use the extensions provided by
163-
:function:`get_package_augmentation_extensions`
163+
:func:`get_package_augmentation_extensions`
164164
:param selection_extensions: The package selection extensions to use, if
165165
`None` is passed use the extensions provided by
166-
:function:`get_package_selection_extensions`
166+
:func:`get_package_selection_extensions`
167167
:rtype: list
168168
:raises RuntimeError: if the returned set of packages contains duplicates
169169
package names
@@ -207,25 +207,25 @@ def get_package_descriptors(
207207
Get the package descriptors.
208208
209209
The overview of the process:
210-
* Discover the package descriptors using the package discovery and
211-
identification extensions
212-
* Check is the passed package selection arguments have valid values
213-
* Augment the package descriptors
210+
* Discover the package descriptors using the package discovery and
211+
identification extensions
212+
* Check is the passed package selection arguments have valid values
213+
* Augment the package descriptors
214214
215215
:param additional_argument_names: A list of additional arguments to
216216
consider
217217
:param discovery_extensions: The package discovery extensions to use, if
218218
`None` is passed use the extensions provided by
219-
:function:`get_package_discovery_extensions`
219+
:func:`get_package_discovery_extensions`
220220
:param identification_extensions: The package identification extensions to
221221
use, if `None` is passed use the extensions provided by
222-
:function:`get_package_identification_extensions`
222+
:func:`get_package_identification_extensions`
223223
:param augmentation_extensions: The package augmentation extensions, if
224224
`None` is passed use the extensions provided by
225-
:function:`get_package_augmentation_extensions`
225+
:func:`get_package_augmentation_extensions`
226226
:param selection_extensions: The package selection extensions to use, if
227227
`None` is passed use the extensions provided by
228-
:function:`get_package_selection_extensions`
228+
:func:`get_package_selection_extensions`
229229
:returns: set of
230230
:py:class:`colcon_core.package_descriptor.PackageDescriptor`
231231
:rtype: set
@@ -276,7 +276,7 @@ def select_package_decorators(
276276
:param list decorators: The package decorators in topological order
277277
:param selection_extensions: The package selection extensions to use, if
278278
`None` is passed use the extensions provided by
279-
:function:`get_package_selection_extensions`
279+
:func:`get_package_selection_extensions`
280280
"""
281281
# filtering must happen after the topological ordering since otherwise
282282
# packages in the middle of the dependency graph might be missing

colcon_core/shell/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def generate_command_environment(
259259
260260
The method must be overridden in a subclass if and only if the shell
261261
extension represents a "primary" shell (as defined in
262-
:attribute:`ShellExtensionPoint.PRIORITY`).
262+
:attr:`ShellExtensionPoint.PRIORITY`).
263263
264264
:param str task_name: The name of the task
265265
:param Path build_base: The base path of the build directory

0 commit comments

Comments
 (0)