Skip to content

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

bump pre-commit check versions

Nick Sweeting1173e2c3ab2f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 612128fae..d3bb348bc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,7 @@ repos:
- tomli
- repo: https://github.com/asottile/pyupgrade
- rev: v3.19.1
+ rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py311-plus]
@@ -23,19 +23,20 @@ repos:
# - id: add-trailing-comma
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.11.2
+ rev: v0.12.10
hooks:
- - id: ruff
+ - id: ruff-check
+ args: [ --fix ]
- id: ruff-format
# see pyproject.toml for more details on ruff config
- repo: https://github.com/RobertCraigie/pyright-python
- rev: v1.1.403
+ rev: v1.1.404
hooks:
- id: pyright
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v5.0.0
+ rev: v6.0.0
hooks:
# check for basic syntax errors in python and data files
- id: check-ast
diff --git a/browser_use/config.py b/browser_use/config.py
index 1a53426cc..3a2d75292 100644
--- a/browser_use/config.py
+++ b/browser_use/config.py
@@ -459,9 +459,7 @@ class Config:
proxy_dict['server'] = env_config.BROWSER_USE_PROXY_URL
if env_config.BROWSER_USE_NO_PROXY:
# store bypass as comma-separated string to match Chrome flag
- proxy_dict['bypass'] = ','.join(
- [d.strip() for d in env_config.BROWSER_USE_NO_PROXY.split(',') if d.strip()]
- )
+ proxy_dict['bypass'] = ','.join([d.strip() for d in env_config.BROWSER_USE_NO_PROXY.split(',') if d.strip()])
if env_config.BROWSER_USE_PROXY_USERNAME:
proxy_dict['username'] = env_config.BROWSER_USE_PROXY_USERNAME
if env_config.BROWSER_USE_PROXY_PASSWORD:
diff --git a/examples/features/secure.py b/examples/features/secure.py
index 53aa7d12e..2951a5cad 100644
--- a/examples/features/secure.py
+++ b/examples/features/secure.py
@@ -67,7 +67,7 @@ task = 'Find the founders of the sensitive company_name'
# Configuration Browser (optional)
browser_profile = BrowserProfile(allowed_domains=['*google.com', 'browser-use.com'], enable_default_extensions=False)
-# Sensitive data (optional) - {key: sensitive_information} - we filter out the sensitive_information from any input to the LLM, it will only wokr with placeholder.
+# Sensitive data (optional) - {key: sensitive_information} - we filter out the sensitive_information from any input to the LLM, it will only work with placeholder.
# By default we pass screenshots to the LLM which can contain your information. Set use_vision=False to disable this.
# If you trust your LLM endpoint, you don't need to worry about this.
sensitive_data: dict[str, str | dict[str, str]] = {'company_name': 'browser-use'}
diff --git a/examples/use-cases/extract_pdf_content.py b/examples/use-cases/extract_pdf_content.py
index e1cd32ab7..9be5633f5 100755
--- a/examples/use-cases/extract_pdf_content.py
+++ b/examples/use-cases/extract_pdf_content.py
@@ -24,7 +24,7 @@ logger = logging.getLogger(__name__)
async def main():
agent = Agent(
task="""
- Objective: Navigate to the following URL whats on page 3?
+ Objective: Navigate to the following UR, what is on page 3?
URL: https://docs.house.gov/meetings/GO/GO00/20220929/115171/HHRG-117-GO00-20220929-SD010.pdf
""",