Skip to content

Commit

Permalink
Fixing the build's linting errors (#3887)
Browse files Browse the repository at this point in the history
master has new linting rules, PRs got merged with lint that was ok at
branching but not ok in masert anymore
  • Loading branch information
mistercrunch authored Nov 16, 2017
1 parent fab7b10 commit e65aba3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
24 changes: 12 additions & 12 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,17 +1769,17 @@ 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'),
}


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')
Expand All @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit e65aba3

Please sign in to comment.