webarena/setup.cfg
openhands 9e986a4f9b Configure mypy to handle missing imports and exclude non-core files
- Add mypy configuration to exclude environment_docker and setup.py from type checking
- Configure ignore_missing_imports for third-party libraries without type stubs
- Add missing type stubs to dev dependencies (types-setuptools, types-flask)

This resolves the remaining mypy failures in CI while maintaining strict type checking for core packages.

Co-authored-by: openhands <openhands@all-hands.dev>
2025-09-02 14:45:40 +00:00

44 lines
716 B
INI

[metadata]
name = webarena
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[options.extras_require]
dev =
pre-commit==3.0.1
pytest==7.1.2
mypy==0.991
nbmake
pytest-asyncio
types-requests
types-setuptools
types-flask
[options]
python_requires = >=3.7, <4
packages =
browser_env
agent
evaluation_harness
llms
[mypy]
strict = true
exclude = (?x)(^environment_docker/.*$|^setup\.py$)
[mypy-text_generation.*]
ignore_missing_imports = true
[mypy-transformers.*]
ignore_missing_imports = true
[mypy-aiolimiter.*]
ignore_missing_imports = true
[mypy-openai.error.*]
ignore_missing_imports = true
[mypy-nltk.*]
ignore_missing_imports = true