Commit 874bbae
authored
V4 insitute code formatting standard using Black (plotly#1626)
- Formats the codebase using Black (https://black.readthedocs.io/en/stable/)
- Updates codegen logic to use black instead of yapf for code formatting
- Adds a pre-commit hook specification for running black prior to commit
- Adds instructions to contributing.md for setting up pre-commit.
- Adds a circleci test case to check that formatting is valid1 parent 958a6b7 commit 874bbae
File tree
1,285 files changed
+98673
-116166
lines changed- .circleci
- packages/python
- chart-studio
- chart_studio
- api
- v2
- dashboard_objs
- grid_objs
- plotly
- presentation_objs
- tests
- test_core/test_tools
- test_optional
- test_grid
- test_matplotlylib
- test_utils
- test_plot_ly
- test_api
- test_v2
- test_dashboard
- test_file
- test_get_figure
- test_get_requests
- test_grid
- test_image
- test_meta
- test_plotly
- test_session
- test_spectacle_presentation
- test_stream
- plotly-geo
- _plotly_geo
- plotly
- _plotly_future_
- _plotly_utils
- tests/validators
- codegen
- plotlywidget
- plotly
- api
- colors
- data
- express
- figure_factory
- graph_objs
- area
- hoverlabel
- barpolar
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- bar
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- box
- hoverlabel
- marker
- selected
- unselected
- candlestick
- decreasing
- hoverlabel
- increasing
- carpet
- aaxis
- title
- baxis
- title
- hoverlabel
- choropleth
- colorbar
- title
- hoverlabel
- marker
- selected
- unselected
- cone
- colorbar
- title
- hoverlabel
- contourcarpet
- colorbar
- title
- contours
- hoverlabel
- contour
- colorbar
- title
- contours
- hoverlabel
- funnelarea
- hoverlabel
- marker
- title
- funnel
- connector
- hoverlabel
- marker
- colorbar
- title
- heatmapgl
- colorbar
- title
- hoverlabel
- heatmap
- colorbar
- title
- hoverlabel
- histogram2dcontour
- colorbar
- title
- contours
- hoverlabel
- histogram2d
- colorbar
- title
- hoverlabel
- histogram
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- isosurface
- caps
- colorbar
- title
- hoverlabel
- slices
- layout
- annotation
- hoverlabel
- coloraxis
- colorbar
- title
- geo
- projection
- grid
- hoverlabel
- legend
- mapbox
- layer
- symbol
- polar
- angularaxis
- radialaxis
- title
- scene
- annotation
- hoverlabel
- camera
- xaxis
- title
- yaxis
- title
- zaxis
- title
- shape
- slider
- currentvalue
- template
- data
- ternary
- aaxis
- title
- baxis
- title
- caxis
- title
- title
- xaxis
- rangeselector
- rangeslider
- title
- yaxis
- title
- mesh3d
- colorbar
- title
- hoverlabel
- ohlc
- decreasing
- hoverlabel
- increasing
- parcats
- line
- colorbar
- title
- parcoords
- line
- colorbar
- title
- pie
- hoverlabel
- marker
- title
- pointcloud
- hoverlabel
- marker
- sankey
- hoverlabel
- link
- hoverlabel
- node
- hoverlabel
- scatter3d
- hoverlabel
- line
- colorbar
- title
- marker
- colorbar
- title
- projection
- scattercarpet
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scattergeo
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scattergl
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scattermapbox
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scatterpolargl
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scatterpolar
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scatterternary
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- scatter
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- splom
- dimension
- hoverlabel
- marker
- colorbar
- title
- selected
- unselected
- streamtube
- colorbar
- title
- hoverlabel
- sunburst
- hoverlabel
- marker
- surface
- colorbar
- title
- contours
- x
- y
- z
- hoverlabel
- table
- cells
- header
- hoverlabel
- violin
- box
- hoverlabel
- marker
- selected
- unselected
- volume
- caps
- colorbar
- title
- hoverlabel
- slices
- waterfall
- connector
- decreasing
- marker
- hoverlabel
- increasing
- marker
- totals
- marker
- io
- matplotlylib
- offline
- plotly
- tests
- test_core
- test_colors
- test_figure_messages
- test_figure_widget_backend
- test_graph_objs
- test_offline
- test_optional_imports
- test_subplots
- test_update_objects
- test_utils
- test_io
- test_optional
- test_figure_factory
- test_jupyter
- test_matplotlylib
- data
- test_offline
- test_tools
- test_utils
- test_orca
- validators
- area
- hoverlabel
- font
- marker
- stream
- barpolar
- hoverlabel
- font
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- selected
- marker
- textfont
- stream
- unselected
- marker
- textfont
- bar
- error_x
- error_y
- hoverlabel
- font
- insidetextfont
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- outsidetextfont
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- box
- hoverlabel
- font
- line
- marker
- line
- selected
- marker
- stream
- unselected
- marker
- candlestick
- decreasing
- line
- hoverlabel
- font
- increasing
- line
- line
- stream
- carpet
- aaxis
- tickfont
- tickformatstop
- title
- font
- baxis
- tickfont
- tickformatstop
- title
- font
- font
- hoverlabel
- font
- stream
- choropleth
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- marker
- line
- selected
- marker
- stream
- unselected
- marker
- cone
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- lighting
- lightposition
- stream
- contourcarpet
- colorbar
- tickfont
- tickformatstop
- title
- font
- contours
- labelfont
- hoverlabel
- font
- line
- stream
- contour
- colorbar
- tickfont
- tickformatstop
- title
- font
- contours
- labelfont
- hoverlabel
- font
- line
- stream
- frame
- funnelarea
- domain
- hoverlabel
- font
- insidetextfont
- marker
- line
- stream
- textfont
- title
- font
- funnel
- connector
- line
- hoverlabel
- font
- insidetextfont
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- outsidetextfont
- stream
- textfont
- heatmapgl
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- stream
- heatmap
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- stream
- histogram2dcontour
- colorbar
- tickfont
- tickformatstop
- title
- font
- contours
- labelfont
- hoverlabel
- font
- line
- marker
- stream
- xbins
- ybins
- histogram2d
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- marker
- stream
- xbins
- ybins
- histogram
- cumulative
- error_x
- error_y
- hoverlabel
- font
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- selected
- marker
- textfont
- stream
- unselected
- marker
- textfont
- xbins
- ybins
- isosurface
- caps
- x
- y
- z
- colorbar
- tickfont
- tickformatstop
- title
- font
- contour
- hoverlabel
- font
- lighting
- lightposition
- slices
- x
- y
- z
- spaceframe
- stream
- surface
- layout
- angularaxis
- annotation
- font
- hoverlabel
- font
- coloraxis
- colorbar
- tickfont
- tickformatstop
- title
- font
- colorscale
- font
- geo
- center
- domain
- lataxis
- lonaxis
- projection
- rotation
- grid
- domain
- hoverlabel
- font
- image
- legend
- font
- mapbox
- center
- domain
- layer
- circle
- fill
- line
- symbol
- textfont
- margin
- modebar
- polar
- angularaxis
- tickfont
- tickformatstop
- domain
- radialaxis
- tickfont
- tickformatstop
- title
- font
- radialaxis
- scene
- annotation
- font
- hoverlabel
- font
- aspectratio
- camera
- center
- eye
- projection
- up
- domain
- xaxis
- tickfont
- tickformatstop
- title
- font
- yaxis
- tickfont
- tickformatstop
- title
- font
- zaxis
- tickfont
- tickformatstop
- title
- font
- shape
- line
- slider
- currentvalue
- font
- font
- pad
- step
- transition
- template
- data
- ternary
- aaxis
- tickfont
- tickformatstop
- title
- font
- baxis
- tickfont
- tickformatstop
- title
- font
- caxis
- tickfont
- tickformatstop
- title
- font
- domain
- title
- font
- pad
- transition
- xaxis
- rangeselector
- button
- font
- rangeslider
- yaxis
- tickfont
- tickformatstop
- title
- font
- yaxis
- tickfont
- tickformatstop
- title
- font
- mesh3d
- colorbar
- tickfont
- tickformatstop
- title
- font
- contour
- hoverlabel
- font
- lighting
- lightposition
- stream
- ohlc
- decreasing
- line
- hoverlabel
- font
- increasing
- line
- line
- stream
- parcats
- dimension
- domain
- labelfont
- line
- colorbar
- tickfont
- tickformatstop
- title
- font
- stream
- tickfont
- parcoords
- dimension
- domain
- labelfont
- line
- colorbar
- tickfont
- tickformatstop
- title
- font
- rangefont
- stream
- tickfont
- pie
- domain
- hoverlabel
- font
- insidetextfont
- marker
- line
- outsidetextfont
- stream
- textfont
- title
- font
- pointcloud
- hoverlabel
- font
- marker
- border
- stream
- sankey
- domain
- hoverlabel
- font
- link
- colorscale
- hoverlabel
- font
- line
- node
- hoverlabel
- font
- line
- stream
- textfont
- scatter3d
- error_x
- error_y
- error_z
- hoverlabel
- font
- line
- colorbar
- tickfont
- tickformatstop
- title
- font
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- projection
- x
- y
- z
- stream
- textfont
- scattercarpet
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- gradient
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scattergeo
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- gradient
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scattergl
- error_x
- error_y
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scattermapbox
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- selected
- marker
- stream
- textfont
- unselected
- marker
- scatterpolargl
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scatterpolar
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- gradient
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scatterternary
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- gradient
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- scatter
- error_x
- error_y
- hoverlabel
- font
- line
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- gradient
- line
- selected
- marker
- textfont
- stream
- textfont
- unselected
- marker
- textfont
- splom
- diagonal
- dimension
- axis
- hoverlabel
- font
- marker
- colorbar
- tickfont
- tickformatstop
- title
- font
- line
- selected
- marker
- stream
- unselected
- marker
- streamtube
- colorbar
- tickfont
- tickformatstop
- title
- font
- hoverlabel
- font
- lighting
- lightposition
- starts
- stream
- sunburst
- domain
- hoverlabel
- font
- insidetextfont
- leaf
- marker
- line
- outsidetextfont
- stream
- textfont
- surface
- colorbar
- tickfont
- tickformatstop
- title
- font
- contours
- x
- project
- y
- project
- z
- project
- hoverlabel
- font
- lighting
- lightposition
- stream
- table
- cells
- fill
- font
- line
- domain
- header
- fill
- font
- line
- hoverlabel
- font
- stream
- violin
- box
- line
- hoverlabel
- font
- line
- marker
- line
- meanline
- selected
- marker
- stream
- unselected
- marker
- volume
- caps
- x
- y
- z
- colorbar
- tickfont
- tickformatstop
- title
- font
- contour
- hoverlabel
- font
- lighting
- lightposition
- slices
- x
- y
- z
- spaceframe
- stream
- surface
- waterfall
- connector
- line
- decreasing
- marker
- line
- hoverlabel
- font
- increasing
- marker
- line
- insidetextfont
- outsidetextfont
- stream
- textfont
- totals
- marker
- line
- templategen
- utils
- test/vv/lib/python2.7/site-packages/plotly
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,285 files changed
+98673
-116166
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
4 | 17 | | |
5 | 18 | | |
6 | 19 | | |
| |||
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
300 | | - | |
| 313 | + | |
301 | 314 | | |
302 | 315 | | |
303 | 316 | | |
| |||
341 | 354 | | |
342 | 355 | | |
343 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
344 | 360 | | |
345 | 361 | | |
346 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
67 | 93 | | |
68 | 94 | | |
69 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
0 commit comments