1
0
mirror of https://github.com/life4/textdistance.git synced 2021-09-19 22:35:47 +03:00

sort imports

This commit is contained in:
Gram
2020-04-11 08:52:59 +02:00
parent 672e90414b
commit 43b4497abb
34 changed files with 87 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
# built-in
from itertools import islice
from pathlib import Path
from sys import argv
# project
from textdistance import EntropyNCD
# read files
licenses = dict()
for path in Path('choosealicense.com', '_licenses').iterdir():

View File

@@ -9,6 +9,11 @@ from = "setup.py"
envs = ["test", "benchmark"]
command = "python3 -m pytest tests/"
[tool.dephell.isort]
from = "setup.py"
envs = ["test"]
command = "python3 -m isort -rc ."
[tool.dephell.flake8]
from = {format = "pip", path = "requirements-flake.txt"}
command = "flake8"

View File

@@ -31,6 +31,7 @@ extras = {
],
'test': [
'hypothesis',
'isort',
'pytest',
],

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from fractions import Fraction
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
import pytest
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance
from textdistance.libraries import prototype

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,5 +1,7 @@
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,7 +1,10 @@
# built-in
from math import isclose
# external
import pytest
# project
import textdistance

View File

@@ -1,8 +1,11 @@
# built-in
from math import isclose
# external
import hypothesis
import pytest
# project
import textdistance

View File

@@ -2,8 +2,8 @@
from difflib import SequenceMatcher as _SequenceMatcher
# app
from .base import BaseSimilarity as _BaseSimilarity
from ..utils import find_ngrams
from .base import BaseSimilarity as _BaseSimilarity
try:

View File

@@ -3,7 +3,7 @@ import json
from collections import defaultdict, namedtuple
from timeit import timeit
# project
# external
from tabulate import tabulate
# app