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 Nov 11, 2024
1 parent fc992ff commit db695c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions conda-store-server/conda_store_server/_internal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# license that can be found in the LICENSE file.

import contextlib
import functools
import hashlib
import json
import os
import pathlib
import re
import subprocess
import sys
import time
import functools
import tempfile
import time
from typing import AnyStr, Callable

from filelock import FileLock
Expand Down Expand Up @@ -195,7 +195,6 @@ def run_in_tempdir(f: Callable):
@functools.wraps(f)
def wrapper(*args, **kwargs):
with contextlib.ExitStack() as stack:

# create a temporary directory
tmpdir = stack.enter_context(tempfile.TemporaryDirectory())

Expand All @@ -206,4 +205,4 @@ def wrapper(*args, **kwargs):
result = f(*args, **kwargs)
return result

return wrapper
return wrapper
2 changes: 1 addition & 1 deletion conda-store-server/tests/plugins/lock/test_conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import os
from unittest import mock

import pytest
Expand All @@ -28,6 +27,7 @@ def test_solve_lockfile(
request,
):
"""Test that the call to conda_lock.run_lock is formed correctly."""

# Dump dummy data to the expected lockfile output location
def run_lock_side_effect(lockfile_path, **kwargs):
with open(lockfile_path, "w") as f:
Expand Down

0 comments on commit db695c8

Please sign in to comment.