From e65aba3c46c294a552bc74006519e2cb106cc69a Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 16 Nov 2017 11:18:33 -0800 Subject: [PATCH] Fixing the build's linting errors (#3887) master has new linting rules, PRs got merged with lint that was ok at branching but not ok in masert anymore --- superset/cli.py | 4 ++-- superset/viz.py | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/superset/cli.py b/superset/cli.py index a9f89af66fb4f..ddbdf4bc1926e 100755 --- a/superset/cli.py +++ b/superset/cli.py @@ -133,14 +133,14 @@ def load_examples(load_test_data): print('Loading [Misc Charts] dashboard') data.load_misc_dashboard() - print("Loading DECK.gl demo") + print('Loading DECK.gl demo') data.load_deck_dash() if load_test_data: print('Loading [Unicode test data]') data.load_unicode_test_data() - print("Loading flights data") + print('Loading flights data') data.load_flights() diff --git a/superset/viz.py b/superset/viz.py index 932f204bb24c3..6b369bedb7451 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1769,8 +1769,8 @@ def get_data(self, df): d = dict(position=self.get_position(d), **self.get_properties(d)) features.append(d) return { - "features": features, - "mapboxApiKey": config.get('MAPBOX_API_KEY'), + 'features': features, + 'mapboxApiKey': config.get('MAPBOX_API_KEY'), } @@ -1778,8 +1778,8 @@ class DeckScatterViz(BaseDeckGLViz): """deck.gl's ScatterLayer""" - viz_type = "deck_scatter" - verbose_name = _("Deck.gl - Scatter plot") + viz_type = 'deck_scatter' + verbose_name = _('Deck.gl - Scatter plot') def query_obj(self): self.point_radius_fixed = self.form_data.get('point_radius_fixed') @@ -1794,8 +1794,8 @@ def get_metrics(self): def get_properties(self, d): return { - "radius": self.fixed_value if self.fixed_value else d.get(self.metric), - "cat_color": d.get(self.dim) if self.dim else None, + 'radius': self.fixed_value if self.fixed_value else d.get(self.metric), + 'cat_color': d.get(self.dim) if self.dim else None, } def get_data(self, df): @@ -1813,24 +1813,24 @@ class DeckScreengrid(BaseDeckGLViz): """deck.gl's ScreenGridLayer""" - viz_type = "deck_screengrid" - verbose_name = _("Deck.gl - Screen Grid") + viz_type = 'deck_screengrid' + verbose_name = _('Deck.gl - Screen Grid') class DeckGrid(BaseDeckGLViz): """deck.gl's DeckLayer""" - viz_type = "deck_grid" - verbose_name = _("Deck.gl - 3D Grid") + viz_type = 'deck_grid' + verbose_name = _('Deck.gl - 3D Grid') class DeckHex(BaseDeckGLViz): """deck.gl's DeckLayer""" - viz_type = "deck_hex" - verbose_name = _("Deck.gl - 3D HEX") + viz_type = 'deck_hex' + verbose_name = _('Deck.gl - 3D HEX') class EventFlowViz(BaseViz):