Skip to content

Commit e57f274

Browse files
committed
run make format
1 parent 5a78fdf commit e57f274

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/mxmake/helpgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def print_help(makefile: pathlib.Path):
4444
)
4545
sys.stdout.write("\n\nTARGETS\n\n")
4646
for target in domain.targets:
47-
sys.stdout.write(f"{idnt*lvl}{target.name}\n")
47+
sys.stdout.write(f"{idnt * lvl}{target.name}\n")
4848
if help_domain:
4949
lvl += 1
5050
found = True
@@ -65,7 +65,7 @@ def print_help(makefile: pathlib.Path):
6565
for setting in domain.settings:
6666
fqn_setting = f"{domain.fqn}.{setting.name}"
6767
sys.stdout.write(
68-
f"{idnt*lvl}{setting.name}={parser.settings.get(fqn_setting) or '<not set>'}\n"
68+
f"{idnt * lvl}{setting.name}={parser.settings.get(fqn_setting) or '<not set>'}\n"
6969
)
7070
sys.stdout.write(
7171
"\n".join(

src/mxmake/templates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ def template_variables(self) -> typing.Dict[str, typing.Any]:
353353
if domain.fqn == "applications.plone":
354354
template = dict(
355355
name="plone-site",
356-
settings=dict(distribution="volto", extension_ids="plone.volto:default"),
356+
settings=dict(
357+
distribution="volto", extension_ids="plone.volto:default"
358+
),
357359
)
358360
mxmake_templates.append(template)
359361
return dict(mxmake_templates=mxmake_templates, mxmake_env=mxmake_env)

src/mxmake/tests/test_hook.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class TestHook(unittest.TestCase):
1010
def test_Hook(self, tempdir):
1111
mxini = tempdir / "mx.ini"
1212
with mxini.open("w") as fd:
13-
fd.write(
14-
"[settings]\n" "mxmake-templates = run-tests run-coverage inexistent"
15-
)
13+
fd.write("[settings]\nmxmake-templates = run-tests run-coverage inexistent")
1614

1715
hook_ = hook.Hook()
1816
configuration = mxdev.Configuration(mxini, hooks=[hook_])

src/mxmake/tests/test_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ def test_PloneSite_all_defaults(self, tempdir):
851851
{
852852
"site": {
853853
"default_language": "en",
854-
'extension_ids': [],
854+
"extension_ids": [],
855855
"portal_timezone": "UTC",
856856
"setup_content": False,
857857
"site_id": "Plone",

0 commit comments

Comments
 (0)