Commit acc07abc authored by Emanuel Jacob's avatar Emanuel Jacob

feat(jira#7): Add absolute module imports (PEP8)

parent 50fb8815
import re
from ..lib.config import merge_config
from b5.lib.config import merge_config
CONFIG_PREFIX_RE = re.compile('[^A-Z0-9]')
MODULES = {
......@@ -33,7 +33,7 @@ class BaseModule:
pass
def _script_config_vars(self):
from ..lib.script import config_script_source
from b5.lib.script import config_script_source
return config_script_source(self.config, prefix=CONFIG_PREFIX_RE.sub('_', self.name.upper()))
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class ComposerModule(BaseModule):
......
......@@ -3,8 +3,8 @@ import os
import pwd
import warnings
from ..exceptions import B5ExecutionError
from . import BaseModule
from b5.exceptions import B5ExecutionError
from b5.modules import BaseModule
class DockerModule(BaseModule):
......
import os
import shlex
from .. import B5_PATH
from . import BaseModule
from b5 import B5_PATH
from b5.modules import BaseModule
class LegacyModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class NpmModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class PipenvModule(BaseModule):
......
......@@ -4,9 +4,9 @@ import sys
import termcolor
import jinja2
from ..lib.argumentparser import TemplateArgumentParser
from .. import VERSION
from . import BaseModule
from b5.lib.argumentparser import TemplateArgumentParser
from b5 import VERSION
from b5.modules import BaseModule
class TemplateModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class VirtualenvModule(BaseModule):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment