Skip to content

Commit 1c4a50c

Browse files
committed
apply isort
1 parent 2ef76e1 commit 1c4a50c

File tree

13 files changed

+21
-23
lines changed

13 files changed

+21
-23
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ clean:
2323
@find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf
2424
@rm -rf *.egg-info/ build/ dist/ MANIFEST
2525

26+
format:
27+
isort -rc .
28+
black .
29+
2630
black:
2731
black .
2832

doc/conf.py

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

13-
import sys
1413
import os
14+
import sys
1515

1616
import mock
1717

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import codecs
22
import os
33

4-
from setuptools import setup, find_packages
4+
from setuptools import find_packages, setup
55

66
# https://packaging.python.org/single_source_version/
77
base_dir = os.path.abspath(os.path.dirname(__file__))

test/refresh_reference_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import argparse
2-
import os
32
import importlib.util
3+
import os
44

5-
import tikzplotlib as m2t
65
import matplotlib.pyplot as plt
76

7+
import tikzplotlib as m2t
8+
89

910
def _main():
1011
parser = argparse.ArgumentParser(description="Refresh the reference TeX files.")

test/test_datetime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime as date
2-
from matplotlib import dates
2+
33
import matplotlib.pyplot as plt
4+
from matplotlib import dates
45

56
from helpers import assert_equality
67

test/test_deterministic_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# assert repeated exports of the same plot produce the same output file
22

3+
import subprocess
34
import sys
45
import tempfile
5-
import subprocess
66

77
# We create the tikz files in separate subprocesses, as when producing those in
88
# the same process, the order of axis parameters is deterministic.

test/test_noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import numpy as np
21
import matplotlib.pyplot as plt
2+
import numpy as np
33

44
from helpers import assert_equality
55

test/test_noise2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import numpy as np
21
import matplotlib.pyplot as plt
2+
import numpy as np
33

44
from helpers import assert_equality
55

test/test_patch_styles.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import matplotlib.pyplot as plt
22
from matplotlib.collections import PolyCollection
33

4-
54
from helpers import assert_equality
65

76

tikzplotlib/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"""
33
from tikzplotlib.__about__ import (
44
__author__,
5-
__email__,
65
__copyright__,
6+
__email__,
77
__license__,
8-
__version__,
98
__status__,
9+
__version__,
1010
)
11-
1211
from tikzplotlib.save import get_tikz_code, save
1312

1413
__all__ = [

0 commit comments

Comments
 (0)