Skip to content

Commit bbd258c

Browse files
committed
74 characters instead of 80 for examples, as it seems that desktop version display less characters than tablet on rtd theme.
1 parent 0feccb1 commit bbd258c

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

bonobo/examples/.style.yapf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[style]
22
based_on_style = pep8
3-
column_limit = 80
3+
column_limit = 74
44
dedent_closing_brackets = true

bonobo/examples/datasets/fablabs.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def display(row):
6161
None, (
6262
' '.join(
6363
filter(
64-
None,
65-
(row.get('postal_code', None), row.get('city', None))
64+
None, (
65+
row.get('postal_code', None),
66+
row.get('city', None)
67+
)
6668
)
6769
), row.get('county', None), row.get('country'),
6870
)
@@ -82,8 +84,9 @@ def display(row):
8284
format(Fore.BLUE, Style.RESET_ALL, **row)
8385
)
8486
print(
85-
' - {}source{}: {source}'.
86-
format(Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET)
87+
' - {}source{}: {source}'.format(
88+
Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET
89+
)
8790
)
8891

8992

bonobo/examples/tutorials/tut02_01_read.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
)
77

88
if __name__ == '__main__':
9-
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')})
9+
bonobo.run(
10+
graph, services={'fs': bonobo.open_examples_fs('datasets')}
11+
)

bonobo/examples/tutorials/tut02_02_write.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ def split_one(line):
1212
)
1313

1414
if __name__ == '__main__':
15-
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')})
15+
bonobo.run(
16+
graph, services={'fs': bonobo.open_examples_fs('datasets')}
17+
)

bonobo/examples/tutorials/tut02_03_writeasmap.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ def write(self, fs, file, lineno, row):
2222
)
2323

2424
if __name__ == '__main__':
25-
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')})
25+
bonobo.run(
26+
graph, services={'fs': bonobo.open_examples_fs('datasets')}
27+
)

0 commit comments

Comments
 (0)