From bbd258c313fbd219ab6351cc5bd9ca41d08c184b Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 1 May 2017 15:22:32 +0200 Subject: [PATCH] 74 characters instead of 80 for examples, as it seems that desktop version display less characters than tablet on rtd theme. --- bonobo/examples/.style.yapf | 2 +- bonobo/examples/datasets/fablabs.py | 11 +++++++---- bonobo/examples/tutorials/tut02_01_read.py | 4 +++- bonobo/examples/tutorials/tut02_02_write.py | 4 +++- bonobo/examples/tutorials/tut02_03_writeasmap.py | 4 +++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/bonobo/examples/.style.yapf b/bonobo/examples/.style.yapf index 70f7590..ffebd86 100644 --- a/bonobo/examples/.style.yapf +++ b/bonobo/examples/.style.yapf @@ -1,4 +1,4 @@ [style] based_on_style = pep8 -column_limit = 80 +column_limit = 74 dedent_closing_brackets = true diff --git a/bonobo/examples/datasets/fablabs.py b/bonobo/examples/datasets/fablabs.py index ae74c0b..be95fe1 100644 --- a/bonobo/examples/datasets/fablabs.py +++ b/bonobo/examples/datasets/fablabs.py @@ -61,8 +61,10 @@ def display(row): None, ( ' '.join( filter( - None, - (row.get('postal_code', None), row.get('city', None)) + None, ( + row.get('postal_code', None), + row.get('city', None) + ) ) ), row.get('county', None), row.get('country'), ) @@ -82,8 +84,9 @@ def display(row): format(Fore.BLUE, Style.RESET_ALL, **row) ) print( - ' - {}source{}: {source}'. - format(Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET) + ' - {}source{}: {source}'.format( + Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET + ) ) diff --git a/bonobo/examples/tutorials/tut02_01_read.py b/bonobo/examples/tutorials/tut02_01_read.py index 28baa9e..9806d43 100644 --- a/bonobo/examples/tutorials/tut02_01_read.py +++ b/bonobo/examples/tutorials/tut02_01_read.py @@ -6,4 +6,6 @@ graph = bonobo.Graph( ) if __name__ == '__main__': - bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) + bonobo.run( + graph, services={'fs': bonobo.open_examples_fs('datasets')} + ) diff --git a/bonobo/examples/tutorials/tut02_02_write.py b/bonobo/examples/tutorials/tut02_02_write.py index a3c4811..161c58e 100644 --- a/bonobo/examples/tutorials/tut02_02_write.py +++ b/bonobo/examples/tutorials/tut02_02_write.py @@ -12,4 +12,6 @@ graph = bonobo.Graph( ) if __name__ == '__main__': - bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) + bonobo.run( + graph, services={'fs': bonobo.open_examples_fs('datasets')} + ) diff --git a/bonobo/examples/tutorials/tut02_03_writeasmap.py b/bonobo/examples/tutorials/tut02_03_writeasmap.py index bdf3194..4598b56 100644 --- a/bonobo/examples/tutorials/tut02_03_writeasmap.py +++ b/bonobo/examples/tutorials/tut02_03_writeasmap.py @@ -22,4 +22,6 @@ graph = bonobo.Graph( ) if __name__ == '__main__': - bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) + bonobo.run( + graph, services={'fs': bonobo.open_examples_fs('datasets')} + )