Skip to content

Commit

Permalink
chore: fixing formatting using black'
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Dec 10, 2024
1 parent a123dbb commit 1cb86bd
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions tutorindigo/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,28 @@ def _override_openedx_docker_image(


# MFEs that are styled using Indigo
indigo_styled_mfes = ['learning', 'learner-dashboard', 'profile', 'account', 'discussions']
indigo_styled_mfes = [
"learning",
"learner-dashboard",
"profile",
"account",
"discussions",
]

hooks.Filters.ENV_PATCHES.add_items(
[(
f"mfe-dockerfile-post-npm-install-{mfe}",
[
(
f"mfe-dockerfile-post-npm-install-{mfe}",
"""
RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0
RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3'
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.1.1'
""",
) for mfe in indigo_styled_mfes]
)
for mfe in indigo_styled_mfes
]
)

hooks.Filters.ENV_PATCHES.add_item(
Expand Down Expand Up @@ -175,9 +184,7 @@ def _override_openedx_docker_image(
)
):
with open(path, encoding="utf-8") as patch_file:
hooks.Filters.ENV_PATCHES.add_item(
(os.path.basename(path), patch_file.read())
)
hooks.Filters.ENV_PATCHES.add_item((os.path.basename(path), patch_file.read()))


for mfe in indigo_styled_mfes:
Expand Down Expand Up @@ -208,6 +215,6 @@ def _override_openedx_docker_image(
RenderWidget: AddDarkTheme,
},
},
"""
""",
),
)

0 comments on commit 1cb86bd

Please sign in to comment.