mirror of
https://github.com/life4/textdistance.git
synced 2021-09-19 22:35:47 +03:00
sort imports
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from fractions import Fraction
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
import pytest
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
from textdistance.libraries import prototype
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# built-in
|
||||
from math import isclose
|
||||
|
||||
# external
|
||||
import hypothesis
|
||||
import pytest
|
||||
|
||||
# project
|
||||
import textdistance
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -3,7 +3,7 @@ import json
|
||||
from collections import defaultdict, namedtuple
|
||||
from timeit import timeit
|
||||
|
||||
# project
|
||||
# external
|
||||
from tabulate import tabulate
|
||||
|
||||
# app
|
||||
|
||||
Reference in New Issue
Block a user