You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following code kept for reference even if not working, but it would be amazing to be able to tune settings (like ensure that something is in INSTALLED_APPS). Maybe not achievable easily and safely, though.
# Use yapf to adjust settings (for example, add some apps).
@subscribe('medikit.feature.django.on_configure')
def on_django_configure(self, event):
original_source, newline, encoding = yapf_api.ReadFile('config/settings.py')
print(original_source, newline, encoding)
reformatted_code, encoding, has_change = yapf_api.FormatFile(
'config/settings.py',
in_place=True,
)
print(reformatted_code, encoding, has_change)
The text was updated successfully, but these errors were encountered:
Following code kept for reference even if not working, but it would be amazing to be able to tune settings (like ensure that something is in INSTALLED_APPS). Maybe not achievable easily and safely, though.
The text was updated successfully, but these errors were encountered: