Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 19, 2023
1 parent e399897 commit defecb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aiidalab_widgets_base/computational_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ def quick_setup(self, _=None):
This action will only trigger the setup of the widget, not the actual setup of the computer and code.
The actual setup will be triggered from DetailedSetupWidget from ComputationalResourcesWidget.
"""
from jinja2 import ChainableUndefined, Environment, meta
import copy

from jinja2 import ChainableUndefined, Environment, meta

# From the remote original setup, fill the template
computer_setup = copy.deepcopy(self.computer_setup) # The dict is nested, so we need deepcopy
computer_setup = copy.deepcopy(
self.computer_setup
) # The dict is nested, so we need deepcopy

for key, value in computer_setup.get("setup", {}).items():
env = Environment(undefined=ChainableUndefined)
Expand Down

0 comments on commit defecb8

Please sign in to comment.