Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply isort to project #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from flask import Flask, jsonify
from marshmallow import Schema, fields

from marshmallow_jsonschema import JSONSchema

app = Flask(__name__)
Expand Down
6 changes: 2 additions & 4 deletions marshmallow_jsonschema/base.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import datetime
import decimal
import typing
import uuid
from enum import Enum
from inspect import isclass
import typing

from marshmallow import fields, missing, Schema, validate
from marshmallow import EXCLUDE, INCLUDE, RAISE, Schema, fields, missing, validate
from marshmallow.class_registry import get_class
from marshmallow.decorators import post_dump
from marshmallow.utils import _Missing

from marshmallow import INCLUDE, EXCLUDE, RAISE

try:
from marshmallow_union import Union

Expand Down
1 change: 0 additions & 1 deletion marshmallow_jsonschema/extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .react_jsonschema_form import ReactJsonSchemaFormJSONSchema


__all__ = ("ReactJsonSchemaFormJSONSchema",)
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[tool.black]
target-version = ['py36', 'py37', 'py38']

[tool.isort]
profile = "black"
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ marshmallow-union
mypy>=0.910

pre-commit~=2.15
isort
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import io
import os

from setuptools import setup, find_packages

from setuptools import find_packages, setup

PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))

Expand Down
5 changes: 3 additions & 2 deletions tests/test_additional_properties.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
from marshmallow import Schema, fields, RAISE, INCLUDE, EXCLUDE
from marshmallow import EXCLUDE, INCLUDE, RAISE, Schema, fields

from marshmallow_jsonschema import JSONSchema, UnsupportedValueError

from marshmallow_jsonschema import UnsupportedValueError, JSONSchema
from . import validate_and_dump


Expand Down
1 change: 1 addition & 0 deletions tests/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from marshmallow_union import Union

from marshmallow_jsonschema import JSONSchema, UnsupportedValueError

from . import UserSchema, validate_and_dump


Expand Down
1 change: 1 addition & 0 deletions tests/test_imports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib

import marshmallow_jsonschema


Expand Down
1 change: 1 addition & 0 deletions tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from marshmallow_union import Union

from marshmallow_jsonschema import JSONSchema, UnsupportedValueError

from . import UserSchema, validate_and_dump


Expand Down