Skip to content

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

Merge branch 'main' into ci-fixes

Nick Sweetinga4aa17c7316c
diff --cc .github/workflows/lint.yml
index d7866cb72,792ef06d0..ab0ec130d
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@@ -16,21 -6,21 +16,31 @@@ on
jobs:
lint-syntax:
- name: Syntax
+ name: syntax-errors
runs-on: ubuntu-latest
+ if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork))
+ steps:
+ - uses: actions/checkout@v4
+ - uses: astral-sh/setup-uv@v5
+ - run: uv run ruff check --no-fix --select PLE
+
+ lint-style:
+ name: code-style
+ runs-on: ubuntu-latest
+ if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork))
steps:
- uses: actions/checkout@v4
- - uses: astral-sh/setup-uv@v5
+ - name: Setup uv and cache packages
+ uses: astral-sh/setup-uv@v5
+ - run: uv run ruff check --no-fix --select PLE
+
+ lint-style:
+ name: Style
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup uv and cache packages
+ uses: astral-sh/setup-uv@v5
- run: uv run ruff format
- run: uv run pre-commit run --all-files