We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c8d2ba commit 2022e85Copy full SHA for 2022e85
codeflash/cli_cmds/cli.py
@@ -1,3 +1,4 @@
1
+import importlib.util
2
import logging
3
import sys
4
from argparse import SUPPRESS, ArgumentParser, Namespace
@@ -145,6 +146,14 @@ def process_and_validate_cmd_args(args: Namespace) -> Namespace:
145
146
if env_utils.is_ci():
147
args.no_pr = True
148
149
+ if getattr(args, "async", False) and importlib.util.find_spec("pytest_asyncio") is None:
150
+ logger.warning(
151
+ "Warning: The --async flag requires pytest-asyncio to be installed.\n"
152
+ "Please install it using:\n"
153
+ ' pip install "codeflash[asyncio]"'
154
+ )
155
+ raise SystemExit(1)
156
+
157
return args
158
159
0 commit comments