Skip to content

Commit 111fa2e

Browse files
committed
MAINT: Lint things better
1 parent 6a2af5c commit 111fa2e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/test_environment_bench.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import subprocess
22
import os
3-
import pytest
43
import json
4+
5+
import pytest
6+
57
from . import tools
68

79
ENVIRONMENTS = []

test/tools.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def _check_conda():
9595
def _check_mamba():
9696
conda = _find_conda()
9797
try:
98-
# Attempt to import libmambapy to check if libmambapy is available
9998
import libmambapy
100-
subprocess.check_call([conda, 'build', '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
101-
# If both checks pass, return True indicating Mamba is available and conda-build is installed
99+
subprocess.check_call([conda, 'build', '--version'],
100+
stdout=subprocess.PIPE,
101+
stderr=subprocess.PIPE)
102102
return True
103103
except (ImportError, subprocess.CalledProcessError, FileNotFoundError):
104104
return False

0 commit comments

Comments
 (0)