diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ed79b8..b575f8e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,9 @@ repos: + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: + - id: isort + name: isort (python) - repo: https://github.com/psf/black rev: 22.10.0 hooks: diff --git a/examples/create_bundle_from_template.py b/examples/create_bundle_from_template.py index c131a96..fb7c46a 100644 --- a/examples/create_bundle_from_template.py +++ b/examples/create_bundle_from_template.py @@ -1,7 +1,7 @@ import sys from pprint import pprint -from src.blueink import Client, constants, exceptions, BundleHelper +from src.blueink import BundleHelper, Client, constants, exceptions client = Client() diff --git a/examples/create_bundle_from_url.py b/examples/create_bundle_from_url.py index 1b9057c..6c5e28d 100644 --- a/examples/create_bundle_from_url.py +++ b/examples/create_bundle_from_url.py @@ -1,7 +1,7 @@ import sys from pprint import pprint -from src.blueink import Client, constants, exceptions, BundleHelper +from src.blueink import BundleHelper, Client, constants, exceptions print("\n*********************") print("Bundle Creation via URL") diff --git a/examples/create_person.py b/examples/create_person.py index 4892cfa..7977a84 100644 --- a/examples/create_person.py +++ b/examples/create_person.py @@ -1,7 +1,8 @@ from copy import deepcopy -from requests.exceptions import HTTPError from pprint import pprint +from requests.exceptions import HTTPError + from src.blueink.client import Client from src.blueink.person_helper import PersonHelper diff --git a/src/blueink/__init__.py b/src/blueink/__init__.py index 37b6435..90ba789 100644 --- a/src/blueink/__init__.py +++ b/src/blueink/__init__.py @@ -1,7 +1,7 @@ from requests import exceptions from . import constants -from .client import Client from .bundle_helper import BundleHelper +from .client import Client __all__ = ["Client", "BundleHelper", "exceptions", "constants"] diff --git a/src/blueink/model/bundles.py b/src/blueink/model/bundles.py index c1f1b8d..8daee42 100644 --- a/src/blueink/model/bundles.py +++ b/src/blueink/model/bundles.py @@ -1,7 +1,8 @@ import random import string from typing import List, Optional -from pydantic import BaseModel, validator, EmailStr + +from pydantic import BaseModel, EmailStr, validator from ..constants import DELIVER_VIA, FIELD_KIND diff --git a/src/blueink/model/persons.py b/src/blueink/model/persons.py index bf4cb96..6aa52b5 100644 --- a/src/blueink/model/persons.py +++ b/src/blueink/model/persons.py @@ -1,5 +1,6 @@ +from typing import List, Optional + from pydantic import BaseModel, EmailStr -from typing import Optional, List class ContactChannelSchema(BaseModel): diff --git a/src/blueink/request_helper.py b/src/blueink/request_helper.py index 8c31be4..5e2f5bc 100644 --- a/src/blueink/request_helper.py +++ b/src/blueink/request_helper.py @@ -1,5 +1,4 @@ import requests - from munch import munchify from .constants import BLUEINK_PAGINATION_HEADER