mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* lint: simplify hooks already covered by Ruff * prune dev dependency * setting E, W, F * poetry? * autopep8 * quote-style = "single" * double-quote-string-fixer * --all-files * apply * Q * drop double-quote-string-fixer * --all-files * apply pre-commit * python3.11 -m poetry lock --no-update --------- Co-authored-by: Robert Brennan <accounts@rbren.io>
24 lines
816 B
Python
24 lines
816 B
Python
import argparse
|
|
import pytest
|
|
|
|
from opendevin import config
|
|
|
|
if __name__ == '__main__':
|
|
"""Main entry point of the script.
|
|
|
|
This script runs pytest with specific arguments and configuration.
|
|
|
|
Usage:
|
|
python script_name.py [--OPENAI_API_KEY=<api_key>] [--model=<model_name>]
|
|
|
|
"""
|
|
parser = argparse.ArgumentParser(description='This script runs pytest with specific arguments and configuration.')
|
|
parser.add_argument('--OPENAI_API_KEY', type=str, required=True, help='Your OpenAI API key')
|
|
parser.add_argument('--model', type=str, required=True, help='The model name to use')
|
|
|
|
parser_args = parser.parse_args()
|
|
config.config['OPENAI_API_KEY'] = parser_args.OPENAI_API_KEY
|
|
args = ['-v', 'evaluation/regression/cases',f'-o model={parser_args.model}']
|
|
|
|
pytest.main(args)
|