summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2019-10-22 14:12:45 +0200
committerClaude Paroz <claude@2xlibre.net>2019-10-22 14:19:20 +0200
commit9858539c8718c16a540de24a508ad2d6f9a5e055 (patch)
tree228d0345e1c2b7b0eb67e5ae508db5c5ec41306a
parent201d8d99102a615df41649a5d08155e25db6017a (diff)
downloadtablib-9858539c8718c16a540de24a508ad2d6f9a5e055.tar.gz
Add known third parties to isort
-rw-r--r--pyproject.toml2
-rw-r--r--src/tablib/__init__.py1
-rw-r--r--src/tablib/formats/_xls.py3
-rw-r--r--src/tablib/formats/_xlsx.py1
-rw-r--r--src/tablib/formats/_yaml.py3
-rwxr-xr-xtests/test_tablib.py3
6 files changed, 4 insertions, 9 deletions
diff --git a/pyproject.toml b/pyproject.toml
index b734078..c1442ed 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
+known_third_party = ["MarkupPy", "odf", "openpyxl", "pkg_resources", "setuptools", "tablib", "xlrd", "xlwt", "yaml"]
line_length = 88
multi_line_output = 3
use_parentheses = true
-
diff --git a/src/tablib/__init__.py b/src/tablib/__init__.py
index e94e939..1d9d505 100644
--- a/src/tablib/__init__.py
+++ b/src/tablib/__init__.py
@@ -1,6 +1,5 @@
""" Tablib. """
from pkg_resources import DistributionNotFound, get_distribution
-
from tablib.core import (
Databook,
Dataset,
diff --git a/src/tablib/formats/_xls.py b/src/tablib/formats/_xls.py
index d405c77..3fc94af 100644
--- a/src/tablib/formats/_xls.py
+++ b/src/tablib/formats/_xls.py
@@ -3,11 +3,10 @@
from io import BytesIO
+import tablib
import xlrd
import xlwt
-import tablib
-
title = 'xls'
extensions = ('xls',)
diff --git a/src/tablib/formats/_xlsx.py b/src/tablib/formats/_xlsx.py
index 6774ef1..6ac46b9 100644
--- a/src/tablib/formats/_xlsx.py
+++ b/src/tablib/formats/_xlsx.py
@@ -4,7 +4,6 @@
from io import BytesIO
import openpyxl
-
import tablib
Workbook = openpyxl.workbook.Workbook
diff --git a/src/tablib/formats/_yaml.py b/src/tablib/formats/_yaml.py
index 54b635e..3707876 100644
--- a/src/tablib/formats/_yaml.py
+++ b/src/tablib/formats/_yaml.py
@@ -1,9 +1,8 @@
""" Tablib - YAML Support.
"""
-import yaml
-
import tablib
+import yaml
title = 'yaml'
extensions = ('yaml', 'yml')
diff --git a/tests/test_tablib.py b/tests/test_tablib.py
index 2f37fdb..00b8214 100755
--- a/tests/test_tablib.py
+++ b/tests/test_tablib.py
@@ -8,9 +8,8 @@ import pickle
import unittest
from uuid import uuid4
-from MarkupPy import markup
-
import tablib
+from MarkupPy import markup
from tablib.core import Row, detect_format
from tablib.formats import _csv as csv_module