Skip to content

Commit

Permalink
Merge pull request #249 from JonathonReinhart/no-wildcard-imports
Browse files Browse the repository at this point in the history
Don't use wildcard imports
  • Loading branch information
JonathonReinhart authored Mar 19, 2024
2 parents 18135bb + 4cd5bbe commit b4bfd81
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
4 changes: 2 additions & 2 deletions scuba/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import yaml
import yaml.nodes

from .constants import *
from .utils import *
from .constants import DEFAULT_SHELL, SCUBA_YML
from .utils import expand_env_vars, parse_env_var
from .dockerutil import make_vol_opt

CfgNode = Any
Expand Down
7 changes: 4 additions & 3 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# coding=utf-8
from .utils import *
import pytest

import logging
import os
from os.path import join
from pathlib import Path
import pytest
from shutil import rmtree
from unittest import mock

from .utils import assert_paths_equal, assert_vol

import scuba.config

Expand Down
8 changes: 4 additions & 4 deletions tests/test_dockerutil.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding=utf-8
from unittest import mock
import pytest

from pathlib import Path
import pytest
import subprocess
from typing import Sequence
from .const import *
from unittest import mock

from .const import ALT_DOCKER_IMAGE, DOCKER_IMAGE

import scuba.dockerutil as uut

Expand Down
30 changes: 17 additions & 13 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
from .utils import *
from unittest import mock
import pytest
import warnings

from grp import getgrgid
import logging
import os
import sys
from pathlib import Path
from tempfile import TemporaryFile, NamedTemporaryFile
import subprocess
import shlex
from pwd import getpwuid
from grp import getgrgid
import pytest
import re
import shlex
import subprocess
import sys
from tempfile import TemporaryFile, NamedTemporaryFile
from unittest import mock
import warnings

import scuba.__main__ as main
import scuba.constants
import scuba.dockerutil
import scuba
import re

from .const import DOCKER_IMAGE
from .utils import (
assert_seq_equal,
assert_str_equalish,
InTempDir,
make_executable,
skipUnlessTty,
)


SCUBAINIT_EXIT_FAIL = 99

Expand Down
8 changes: 4 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import shlex
import io
from itertools import chain
import os
import io
import pytest
import shlex
from typing import List, Sequence

from .utils import *
import pytest
from .utils import assert_seq_equal

import scuba.utils

Expand Down

0 comments on commit b4bfd81

Please sign in to comment.