mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-10-29 19:47:00 +00:00
Update to isort and black 24
This commit is contained in:
parent
13cfb8616c
commit
ddbf442a30
@ -7,6 +7,7 @@ import tox.tox_env.python.virtual_env.runner
|
|||||||
from poetry.factory import Factory
|
from poetry.factory import Factory
|
||||||
|
|
||||||
import tox_poetry_installer.hooks._tox_on_install_helpers
|
import tox_poetry_installer.hooks._tox_on_install_helpers
|
||||||
|
|
||||||
from .fixtures import mock_poetry_factory
|
from .fixtures import mock_poetry_factory
|
||||||
from .fixtures import mock_venv
|
from .fixtures import mock_venv
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
The next best thing to having one source of truth is having a way to ensure all of your
|
The next best thing to having one source of truth is having a way to ensure all of your
|
||||||
sources of truth agree with each other.
|
sources of truth agree with each other.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import toml
|
import toml
|
||||||
|
@ -4,9 +4,10 @@ import poetry.utils.env
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import tox_poetry_installer.hooks._tox_on_install_helpers
|
import tox_poetry_installer.hooks._tox_on_install_helpers
|
||||||
|
from tox_poetry_installer import exceptions
|
||||||
|
|
||||||
from .fixtures import mock_poetry_factory
|
from .fixtures import mock_poetry_factory
|
||||||
from .fixtures import mock_venv
|
from .fixtures import mock_venv
|
||||||
from tox_poetry_installer import exceptions
|
|
||||||
|
|
||||||
|
|
||||||
def test_allow_missing():
|
def test_allow_missing():
|
||||||
|
@ -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
|
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.
|
installed and/or a more helpful error be raised within the Tox framework.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from tox_poetry_installer import exceptions
|
from tox_poetry_installer import exceptions
|
||||||
|
@ -5,6 +5,7 @@ in this module.
|
|||||||
|
|
||||||
All constants should be type hinted.
|
All constants should be type hinted.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
from tox_poetry_installer import __about__
|
from tox_poetry_installer import __about__
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Helper functions for the :func:`tox_on_install` hook"""
|
"""Helper functions for the :func:`tox_on_install` hook"""
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import concurrent.futures
|
import concurrent.futures
|
||||||
import contextlib
|
import contextlib
|
||||||
@ -20,6 +21,7 @@ from tox_poetry_installer import constants
|
|||||||
from tox_poetry_installer import exceptions
|
from tox_poetry_installer import exceptions
|
||||||
from tox_poetry_installer import logger
|
from tox_poetry_installer import logger
|
||||||
|
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from tox_poetry_installer import _poetry
|
from tox_poetry_installer import _poetry
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Add required env configuration options to the tox INI file"""
|
"""Add required env configuration options to the tox INI file"""
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from tox.config.sets import EnvConfigSet
|
from tox.config.sets import EnvConfigSet
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Add additional command line arguments to tox to configure plugin behavior"""
|
"""Add additional command line arguments to tox to configure plugin behavior"""
|
||||||
|
|
||||||
from tox.config.cli.parser import ToxParser
|
from tox.config.cli.parser import ToxParser
|
||||||
from tox.plugin import impl
|
from tox.plugin import impl
|
||||||
|
|
||||||
|
@ -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
|
specified by the Tox environment. Finally these dependencies are installed into the Tox
|
||||||
environment using the Poetry ``PipInstaller`` backend.
|
environment using the Poetry ``PipInstaller`` backend.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
||||||
from tox.plugin import impl
|
from tox.plugin import impl
|
||||||
|
@ -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
|
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.
|
more difficult to follow because of the added complexity.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from tox_poetry_installer import constants
|
from tox_poetry_installer import constants
|
||||||
|
Loading…
Reference in New Issue
Block a user