Skip to content

Commit 1717f34

Browse files
author
David Robertson
committed
Run isort
Config taken from Synapse
1 parent 629c026 commit 1717f34

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@
3333
directory = "misc"
3434
name = "Internal Changes"
3535
showcontent = true
36+
37+
[tool.isort]
38+
line_length = 88
39+
multi_line_output = 3
40+
include_trailing_comma = true
41+
combine_as_imports = true
42+
known_first_party = ["signedjson", "tests"]

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
from setuptools import setup
18-
from codecs import open
1917
import os
18+
from codecs import open
19+
20+
from setuptools import setup
2021

2122
here = os.path.abspath(os.path.dirname(__file__))
2223

signedjson/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# limitations under the License.
1414

1515
try:
16-
from importlib.metadata import version, PackageNotFoundError
16+
from importlib.metadata import PackageNotFoundError, version
1717
except ImportError: # pragma: nocover
18-
from importlib_metadata import version, PackageNotFoundError
18+
from importlib_metadata import PackageNotFoundError, version
1919

2020
try:
2121
__version__ = version(__name__)

tests/test_known_key.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717
import unittest
1818

19-
from unpaddedbase64 import decode_base64
20-
2119
import nacl.signing
20+
from unpaddedbase64 import decode_base64
2221

2322
from signedjson.sign import sign_json
2423

tests/test_sign.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
from unpaddedbase64 import encode_base64
2020

2121
from signedjson.sign import (
22-
sign_json, verify_signed_json, signature_ids, SignatureVerifyException
22+
SignatureVerifyException,
23+
sign_json,
24+
signature_ids,
25+
verify_signed_json,
2326
)
2427

2528

0 commit comments

Comments
 (0)