Skip to content

Commit

Permalink
Implement isort
Browse files Browse the repository at this point in the history
  • Loading branch information
nint8835 committed May 19, 2022
1 parent a129888 commit 6f94b90
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
3 changes: 1 addition & 2 deletions jigsaw/PluginLoader.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import importlib.util
import json
import logging
import os
import traceback

from .Plugin import JigsawPlugin

import importlib.util


class PluginLoader(object):
"""
Expand Down
2 changes: 1 addition & 1 deletion jigsaw/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .PluginLoader import PluginLoader
from .Plugin import JigsawPlugin
from .PluginLoader import PluginLoader
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ def test(session):

@session(python=["3.10"])
def format(session):
session.install("black")
session.install("black", "isort")
session.run("black", *PACKAGE_FILES)
session.run("isort", *PACKAGE_FILES)
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ pytest-cov = "^3.0.0"
nox-poetry = "^1.0.0"
nox = "^2022.1.7"
black = "^22.3.0"
isort = "^5.10.1"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
profile = "black"

0 comments on commit 6f94b90

Please sign in to comment.