Update to isort and black 24

This commit is contained in:
2024-08-16 14:27:46 -04:00
parent 13cfb8616c
commit ddbf442a30
10 changed files with 12 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ at the module scope it is imported into function scope wherever Poetry component
moves import errors from load time to runtime which allows the plugin to be skipped if Poetry isn't
installed and/or a more helpful error be raised within the Tox framework.
"""
import sys
from tox_poetry_installer import exceptions

View File

@@ -5,6 +5,7 @@ in this module.
All constants should be type hinted.
"""
from typing import Tuple
from tox_poetry_installer import __about__

View File

@@ -1,4 +1,5 @@
"""Helper functions for the :func:`tox_on_install` hook"""
import collections
import concurrent.futures
import contextlib
@@ -20,6 +21,7 @@ from tox_poetry_installer import constants
from tox_poetry_installer import exceptions
from tox_poetry_installer import logger
if typing.TYPE_CHECKING:
from tox_poetry_installer import _poetry

View File

@@ -1,4 +1,5 @@
"""Add required env configuration options to the tox INI file"""
from typing import List
from tox.config.sets import EnvConfigSet

View File

@@ -1,4 +1,5 @@
"""Add additional command line arguments to tox to configure plugin behavior"""
from tox.config.cli.parser import ToxParser
from tox.plugin import impl

View File

@@ -4,6 +4,7 @@ Loads the local Poetry environment and the corresponding lockfile then pulls the
specified by the Tox environment. Finally these dependencies are installed into the Tox
environment using the Poetry ``PipInstaller`` backend.
"""
from itertools import chain
from tox.plugin import impl

View File

@@ -4,6 +4,7 @@ Calling ``tox.reporter.something()`` and having to format a string with the pref
gets really old fast, but more importantly it also makes the flow of the main code
more difficult to follow because of the added complexity.
"""
import logging
from tox_poetry_installer import constants