diff options
author | Bernát Gábor <bgabor8@bloomberg.net> | 2021-03-07 23:02:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 23:02:25 +0000 |
commit | d0c428ed89457cb88d4f273ea8e1081bcc1f66bc (patch) | |
tree | 0c84ab0e463501dfb79769d5179c47d07f83b246 /src/tox/config/main.py | |
parent | f6cfd53f475367e710c89ac9ed081065a0ac14aa (diff) | |
download | tox-git-d0c428ed89457cb88d4f273ea8e1081bcc1f66bc.tar.gz |
Inline plugin definition support - tox_.py (#1963)
Diffstat (limited to 'src/tox/config/main.py')
-rw-r--r-- | src/tox/config/main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tox/config/main.py b/src/tox/config/main.py index 4ef31c5b..63a3e659 100644 --- a/src/tox/config/main.py +++ b/src/tox/config/main.py @@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, from tox.config.loader.api import Loader, Override, OverrideMap from .sets import CoreConfigSet, EnvConfigSet -from .source import Source, discover_source +from .source import Source if TYPE_CHECKING: from .cli.parser import Parsed @@ -34,9 +34,8 @@ class Config: self.register_config_set: Callable[[str, EnvConfigSet], Any] = lambda n, e: None @classmethod - def make(cls, parsed: "Parsed", pos_args: Optional[Sequence[str]]) -> "Config": + def make(cls, parsed: "Parsed", pos_args: Optional[Sequence[str]], source: Source) -> "Config": """Make a tox configuration object.""" - source = discover_source(parsed.config_file, parsed.root_dir) # root is the project root, where the configuration file is at # work dir is where we put our own files root: Path = source.path.parent if parsed.root_dir is None else parsed.root_dir |