Skip to content

Commit c175b4b

Browse files
committed
Black formatting
1 parent 0a8d42c commit c175b4b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

conda-store-server/conda_store_server/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CondaStore(LoggingConfigurable):
2626
build_directory = Unicode(
2727
"{store_directory}/{namespace}",
2828
help="Template used to form the directory for storing conda environment builds. Available keys: store_directory, namespace, name. The default will put all built environments in the same namespace within the same directory.",
29-
config=True
29+
config=True,
3030
)
3131

3232
environment_directory = Unicode(

conda-store-server/conda_store_server/orm.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ def build_path(self, conda_store):
131131
store_directory = os.path.abspath(conda_store.store_directory)
132132
namespace = self.environment.namespace.name
133133
name = self.specification.name
134-
return os.path.join(conda_store.build_directory.format(
135-
store_directory=store_directory,
136-
namespace=namespace,
137-
name=name
138-
), self.build_key)
134+
return os.path.join(
135+
conda_store.build_directory.format(
136+
store_directory=store_directory, namespace=namespace, name=name
137+
),
138+
self.build_key,
139+
)
139140

140141
def environment_path(self, conda_store):
141142
"""Environment path is the path for the symlink to the build
@@ -145,11 +146,12 @@ def environment_path(self, conda_store):
145146
store_directory = os.path.abspath(conda_store.store_directory)
146147
namespace = self.environment.namespace.name
147148
name = self.specification.name
148-
return os.path.join(conda_store.environment_directory.format(
149-
store_directory=store_directory,
150-
namespace=namespace,
151-
name=name
152-
), self.specification.name)
149+
return os.path.join(
150+
conda_store.environment_directory.format(
151+
store_directory=store_directory, namespace=namespace, name=name
152+
),
153+
self.specification.name,
154+
)
153155

154156
@property
155157
def build_key(self):

conda-store-server/conda_store_server/worker/tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def task_update_environment_build(self, environment_id):
103103
environment = api.get_environment(conda_store.db, id=environment_id)
104104

105105
conda_prefix = environment.current_build.build_path(conda_store)
106-
environment_prefix = environment.current_build.environment_path(
107-
conda_store
108-
)
106+
environment_prefix = environment.current_build.environment_path(conda_store)
109107

110108
utils.symlink(conda_prefix, environment_prefix)
111109

0 commit comments

Comments
 (0)