Skip to content

Commit 48b078a

Browse files
isorthartwork
authored andcommitted
isort: Mass-apply
1 parent 55d5ec7 commit 48b078a

File tree

10 files changed

+20
-15
lines changed

10 files changed

+20
-15
lines changed

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys
1514
import os
15+
import sys
16+
1617
import sphinx_rtd_theme
1718

1819
# If extensions (or modules to document with autodoc) are in another directory,

docs/source/tutorials/scripts/fig_final.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import svgutils.transform as sg
21
import sys
32

3+
import svgutils.transform as sg
4+
45
# create new SVG figure
56
fig = sg.SVGFigure("16cm", "6.5cm")
67

docs/source/tutorials/scripts/sigmoid_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
rcParams.update(params)
2323

2424

25-
import numpy as np
2625
import matplotlib.pyplot as plt
26+
import numpy as np
2727

2828

2929
def sigmoid(x):

examples/stack_plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python3
22
# coding=utf-8
33

4-
import numpy as np
54
import matplotlib.pyplot as plt
5+
import numpy as np
66

7-
from svgutils.transform import from_mpl
87
from svgutils.templates import VerticalLayout
8+
from svgutils.transform import from_mpl
99

1010
layout = VerticalLayout()
1111

examples/stack_svg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env python3
22
# coding=utf-8
33

4+
from svgutils.templates import ColumnLayout, VerticalLayout
45
from svgutils.transform import fromfile
5-
from svgutils.templates import VerticalLayout, ColumnLayout
6-
76

87
layout = ColumnLayout(5)
98

src/svgutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import transform, compose
1+
from . import compose, transform

src/svgutils/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# coding=utf-8
33

4-
from svgutils.transform import SVGFigure, GroupElement
4+
from svgutils.transform import GroupElement, SVGFigure
55

66

77
class BaseTemplate(SVGFigure):

src/svgutils/transform.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from lxml import etree
2-
from copy import deepcopy
31
import codecs
2+
from copy import deepcopy
3+
4+
from lxml import etree
45

56
try:
67
from StringIO import StringIO

tests/test_compose.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import codecs
2+
import hashlib
3+
4+
from nose.tools import assert_almost_equal, ok_
5+
16
import svgutils.compose as sc
27
from svgutils.compose import *
3-
from nose.tools import ok_, assert_almost_equal
48
from svgutils.transform import SVG, XLINK
5-
import codecs
6-
import hashlib
79

810

911
def test_embedded_svg():

tests/test_transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# coding=utf-8
33
from tempfile import NamedTemporaryFile
44

5+
from nose.tools import ok_
6+
57
from svgutils import transform
68
from svgutils.compose import Unit
7-
from nose.tools import ok_
89

910
circle = """<?xml version="1.0" standalone="no"?>
1011
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"

0 commit comments

Comments
 (0)