Browse Source

flake 8 and isort

pull/329/head
Nicolas Bonfante 9 years ago
parent
commit
19d080d478
  1. 3
      pygal/config.py
  2. 3
      pygal/graph/gauge.py
  3. 9
      pygal/graph/graph.py
  4. 6
      pygal/util.py

3
pygal/config.py

@ -20,10 +20,9 @@
from copy import deepcopy
from pygal import formatters
from pygal.interpolate import INTERPOLATIONS
from pygal.style import DefaultStyle, Style
from pygal import formatters
CONFIG_ITEMS = []
callable = type(lambda: 1)

3
pygal/graph/gauge.py

@ -23,9 +23,10 @@ from __future__ import division
from pygal._compat import is_str
from pygal.graph.graph import Graph
from pygal.util import alter, compute_scale, cut, decorate, compose
from pygal.util import alter, compose, compute_scale, cut, decorate
from pygal.view import PolarThetaLogView, PolarThetaView
class Gauge(Graph):
"""Gauge graph class"""

9
pygal/graph/graph.py

@ -22,14 +22,13 @@ from __future__ import division
from math import ceil, cos, sin, sqrt
from pygal import stats
from pygal._compat import is_list_like, is_str, to_str
from pygal.graph.public import PublicApi
from pygal.interpolate import INTERPOLATIONS
from pygal import stats
from pygal.util import (
cached_property, compute_scale, cut, decorate,
get_text_box, get_texts_box, majorize, rad, reverse_text_len,
split_title, truncate, filter_kwargs)
from pygal.util import (cached_property, compute_scale, cut, decorate,
filter_kwargs, get_text_box, get_texts_box, majorize,
rad, reverse_text_len, split_title, truncate)
from pygal.view import LogView, ReverseView, View, XYLogView

6
pygal/util.py

@ -23,10 +23,9 @@ from __future__ import division
import re
from decimal import Decimal
from math import ceil, cos, floor, log10, pi, sin
from math import ceil, floor, log10, pi, cos, sin
from pygal._compat import to_unicode, u, _ellipsis
from pygal._compat import _ellipsis, to_unicode, u
def float_format(number):
@ -387,4 +386,3 @@ def merge(dict1, dict2):
def compose(f, g):
return lambda x: f(g(x))

Loading…
Cancel
Save