74 characters instead of 80 for examples, as it seems that desktop version display less characters than tablet on rtd theme.

This commit is contained in:
Romain Dorgueil
2017-05-01 15:22:32 +02:00
parent 0feccb1aa9
commit bbd258c313
5 changed files with 17 additions and 8 deletions

View File

@ -1,4 +1,4 @@
[style] [style]
based_on_style = pep8 based_on_style = pep8
column_limit = 80 column_limit = 74
dedent_closing_brackets = true dedent_closing_brackets = true

View File

@ -61,8 +61,10 @@ def display(row):
None, ( None, (
' '.join( ' '.join(
filter( filter(
None, None, (
(row.get('postal_code', None), row.get('city', None)) row.get('postal_code', None),
row.get('city', None)
)
) )
), row.get('county', None), row.get('country'), ), row.get('county', None), row.get('country'),
) )
@ -82,8 +84,9 @@ def display(row):
format(Fore.BLUE, Style.RESET_ALL, **row) format(Fore.BLUE, Style.RESET_ALL, **row)
) )
print( print(
' - {}source{}: {source}'. ' - {}source{}: {source}'.format(
format(Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET) Fore.BLUE, Style.RESET_ALL, source='datanova/' + API_DATASET
)
) )

View File

@ -6,4 +6,6 @@ graph = bonobo.Graph(
) )
if __name__ == '__main__': if __name__ == '__main__':
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) bonobo.run(
graph, services={'fs': bonobo.open_examples_fs('datasets')}
)

View File

@ -12,4 +12,6 @@ graph = bonobo.Graph(
) )
if __name__ == '__main__': if __name__ == '__main__':
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) bonobo.run(
graph, services={'fs': bonobo.open_examples_fs('datasets')}
)

View File

@ -22,4 +22,6 @@ graph = bonobo.Graph(
) )
if __name__ == '__main__': if __name__ == '__main__':
bonobo.run(graph, services={'fs': bonobo.open_examples_fs('datasets')}) bonobo.run(
graph, services={'fs': bonobo.open_examples_fs('datasets')}
)