Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2025
1 parent f63b4b1 commit 98d7e88
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@

class CondaLock(lock.LockPlugin):
def _conda_command(self, conda_store, namespace=None, environment=None) -> str:
return conda_store.get_setting(
"conda_command", namespace=namespace, environment_name=environment
) or "mamba"
return (
conda_store.get_setting(
"conda_command", namespace=namespace, environment_name=environment
)
or "mamba"
)

def _conda_flags(self, conda_store) -> str:
return conda_store.config.conda_flags
Expand All @@ -34,7 +37,9 @@ def lock_environment(
) -> str:
context.log.info("lock_environment entrypoint for conda-lock")
conda_command = self._conda_command(
context.conda_store, namespace=context.namespace, environment=context.environment
context.conda_store,
namespace=context.namespace,
environment=context.environment,
)
conda_flags = self._conda_flags(context.conda_store)

Expand Down

0 comments on commit 98d7e88

Please sign in to comment.