Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

chore: linting + ignore .venv folders

BroskyBrowser000ee0d26201
diff --cc .gitignore
index 202f65f4b,14c1eddf2..8b57d444d
--- a/.gitignore
+++ b/.gitignore
@@@ -7,9 -7,10 +7,10 @@@ __pycache__
.ruff_cache/
.pytest_cache/
.ipynb_checkpoints
+ ~/
# Virtual Environments
-.venv
+.venv*
venv/
# IDEs
diff --cc pyproject.toml
index d8ec1b0b1,c4cfdd192..e642faaf2
--- a/pyproject.toml
+++ b/pyproject.toml
@@@ -114,9 -115,30 +115,33 @@@ include =
"browser_use/dom/buildDomTree.js",
]
+ [tool.pytest.ini_options]
+ asyncio_mode = "auto"
+ asyncio_default_fixture_loop_scope = "module"
+ asyncio_default_test_loop_scope = "module"
+ markers = [
+ "slow: marks tests as slow (deselect with `-m 'not slow'`)",
+ "integration: marks tests as integration tests",
+ "unit: marks tests as unit tests",
+ "asyncio: mark tests as async tests",
+ ]
+ testpaths = [
+ "tests"
+ ]
+ python_files = ["test_*.py", "*_test.py"]
+ addopts = "-v --strict-markers --tb=short"
+ log_cli = true
+ log_cli_format = "%(levelname)-8s [%(name)s] %(message)s"
+ filterwarnings = [
+ "ignore::pytest.PytestDeprecationWarning",
+ "ignore::DeprecationWarning",
+ ]
+ log_level = "INFO"
+
+
+[tool.hatch.metadata]
+allow-direct-references = true
+
[tool.uv]
dev-dependencies = [
"ruff>=0.11.2",