When documenting classes or methods there are some common formats, like NumPy, Google and the standard reStructuredText format - all which involve indentations.
When using the show command line argument, these indentations are being ignored
Example:
train_benchmark.py
frommetaflowimportFlowSpec, stepclassTrainBenchmarkModelFlow(FlowSpec):
""" Train a benchmark model Example ------- Train a benchmark model .. code-block:: bash python train_benchmark.py run """
...
if__name__=='__main__':
TrainBenchmarkModelFlow()
Running python train_benchmark.py show results in
Metaflow 2.0.1 executing TrainBenchmarkModelFlow ...
Train a benchmark model
Example
-------
Train a benchmark model
.. code-block:: bash
python train_benchmark.py run
Notice in the output the indentation is ignored. It will be helpful to have the correct indentation for better readability
The text was updated successfully, but these errors were encountered:
1. Use a smaller standalone Conda installer for AWS Batch
2. Add METAFLOW_S3_ENDPOINT_URL configuration (#130)
3. Use the CLI datastore-root before checking for METAFLOW_DATASTORE_SYSROOT_S3
4. Fix an issue where using the local metadata provider with Batch resulted
in .metaflow/.metaflow instead of just .metaflow
5. Add a way to get parameter names passed to a flow (using
current.parameter_names) (#137)
6. Properly indent on show (#92)
7. Surpress superfluous message when running on Batch
eliorc commentedJan 9, 2020
•
edited
When documenting classes or methods there are some common formats, like NumPy, Google and the standard reStructuredText format - all which involve indentations.
When using the
show
command line argument, these indentations are being ignoredExample:
train_benchmark.py
Running
python train_benchmark.py show
results inNotice in the output the indentation is ignored. It will be helpful to have the correct indentation for better readability
The text was updated successfully, but these errors were encountered: