missing and redundant imports (#47577)
This commit is contained in:
parent
9642b04513
commit
41d9f687f6
@ -25,6 +25,7 @@
|
|||||||
import spack.extensions
|
import spack.extensions
|
||||||
import spack.parser
|
import spack.parser
|
||||||
import spack.paths
|
import spack.paths
|
||||||
|
import spack.repo
|
||||||
import spack.spec
|
import spack.spec
|
||||||
import spack.store
|
import spack.store
|
||||||
import spack.traverse as traverse
|
import spack.traverse as traverse
|
||||||
|
@ -180,7 +180,7 @@ def ensure_mirror_usable(self, direction: str = "push"):
|
|||||||
if errors:
|
if errors:
|
||||||
msg = f"invalid {direction} configuration for mirror {self.name}: "
|
msg = f"invalid {direction} configuration for mirror {self.name}: "
|
||||||
msg += "\n ".join(errors)
|
msg += "\n ".join(errors)
|
||||||
raise spack.mirror.MirrorError(msg)
|
raise MirrorError(msg)
|
||||||
|
|
||||||
def _update_connection_dict(self, current_data: dict, new_data: dict, top_level: bool):
|
def _update_connection_dict(self, current_data: dict, new_data: dict, top_level: bool):
|
||||||
# Only allow one to exist in the config
|
# Only allow one to exist in the config
|
||||||
|
@ -10,9 +10,6 @@
|
|||||||
|
|
||||||
import spack.config
|
import spack.config
|
||||||
import spack.deptypes as dt
|
import spack.deptypes as dt
|
||||||
import spack.package_base
|
|
||||||
import spack.paths
|
|
||||||
import spack.repo
|
|
||||||
import spack.solver.asp
|
import spack.solver.asp
|
||||||
from spack.installer import PackageInstaller
|
from spack.installer import PackageInstaller
|
||||||
from spack.spec import Spec
|
from spack.spec import Spec
|
||||||
|
@ -4,9 +4,11 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import spack.config
|
||||||
import spack.environment as ev
|
import spack.environment as ev
|
||||||
import spack.error
|
import spack.error
|
||||||
import spack.solver.asp as asp
|
import spack.solver.asp as asp
|
||||||
|
import spack.store
|
||||||
from spack.cmd import (
|
from spack.cmd import (
|
||||||
CommandNameError,
|
CommandNameError,
|
||||||
PythonNameError,
|
PythonNameError,
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import spack.config
|
||||||
import spack.environment as ev
|
import spack.environment as ev
|
||||||
import spack.error
|
import spack.error
|
||||||
import spack.spec
|
import spack.spec
|
||||||
|
Loading…
Reference in New Issue
Block a user