Enforcing quote format with black in develop.
This commit is contained in:
@ -4,10 +4,11 @@ import runpy
|
||||
import sys
|
||||
from contextlib import contextmanager
|
||||
|
||||
from mondrian import humanizer
|
||||
|
||||
import bonobo.util.environ
|
||||
from bonobo.util import get_name
|
||||
from bonobo.util.environ import get_argument_parser, parse_args
|
||||
from mondrian import humanizer
|
||||
|
||||
|
||||
class BaseCommand:
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
from mondrian import humanizer
|
||||
|
||||
import bonobo
|
||||
from bonobo.commands import BaseCommand
|
||||
from bonobo.registry import READER, WRITER, default_registry
|
||||
from bonobo.util.resolvers import _resolve_options, _resolve_transformations
|
||||
from mondrian import humanizer
|
||||
|
||||
|
||||
class ConvertCommand(BaseCommand):
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import os
|
||||
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
from mondrian import humanizer
|
||||
|
||||
from bonobo.commands import BaseCommand
|
||||
from mondrian import humanizer
|
||||
|
||||
|
||||
class InitCommand(BaseCommand):
|
||||
@ -31,16 +31,12 @@ class InitCommand(BaseCommand):
|
||||
with open(filename, "w+") as f:
|
||||
f.write(template.render(name=name))
|
||||
|
||||
print(
|
||||
humanizer.Success(
|
||||
"Generated {} using template {!r}.".format(filename, template_name)
|
||||
)
|
||||
)
|
||||
print(humanizer.Success("Generated {} using template {!r}.".format(filename, template_name)))
|
||||
|
||||
def create_package(self, *, filename):
|
||||
_, ext = os.path.splitext(filename)
|
||||
if ext != '':
|
||||
raise ValueError('Package names should not have an extension.')
|
||||
if ext != "":
|
||||
raise ValueError("Package names should not have an extension.")
|
||||
|
||||
try:
|
||||
import medikit.commands
|
||||
@ -60,16 +56,16 @@ class InitCommand(BaseCommand):
|
||||
print(
|
||||
humanizer.Success(
|
||||
'Package "{}" has been created.'.format(package_name),
|
||||
'',
|
||||
"",
|
||||
"Install it...",
|
||||
'',
|
||||
"",
|
||||
" $ `pip install --editable {}`".format(filename),
|
||||
'',
|
||||
"",
|
||||
"Then maybe run the example...",
|
||||
'',
|
||||
"",
|
||||
" $ `python -m {}`".format(package_name),
|
||||
'',
|
||||
"Enjoy!"
|
||||
"",
|
||||
"Enjoy!",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
from bonobo.commands import BaseCommand
|
||||
from mondrian import humanizer
|
||||
|
||||
from bonobo.commands import BaseCommand
|
||||
|
||||
|
||||
def get_versions(*, all=False, quiet=None):
|
||||
import bonobo
|
||||
|
||||
Reference in New Issue
Block a user