Skip to content

Commit b29527c

Browse files
committed
Fix for isort v5.0.0
1 parent c92807a commit b29527c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.isort.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[settings]
22
skip = workbench.py
3-
not_skip = __init__.py
43
known_third_party =
54
antlr4,
65
dateutil,

stix2/environment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Python STIX2 Environment API."""
2-
32
import copy
43
import logging
54
import time
@@ -463,7 +462,7 @@ def partial_location_distance(lat1, long1, lat2, long2, threshold):
463462
float: Number between 0.0 and 1.0 depending on match.
464463
465464
"""
466-
from haversine import haversine, Unit
465+
from haversine import Unit, haversine
467466
distance = haversine((lat1, long1), (lat2, long2), unit=Unit.KILOMETERS)
468467
result = 1 - (distance / threshold)
469468
logger.debug(

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ max-line-length = 160
3030
[testenv:isort-check]
3131
deps = isort
3232
commands =
33-
isort -rc stix2 examples -df
34-
isort -rc stix2 examples -c
33+
isort stix2 examples --df
34+
isort stix2 examples -c
3535

3636
[testenv:packaging]
3737
deps =

0 commit comments

Comments
 (0)