From fdef2121dd9ad9494141286ac8fbd68675c824c7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 3 Aug 2026 15:09:06 +0000 Subject: [PATCH 1/2] ci: bump checkout to v6 and format README example Modernize GitHub Actions checkout major and apply ruff formatting to README code sample. Co-authored-by: v1x0r87 --- .github/workflows/ci.yml | 6 +++--- .github/workflows/publish.yml | 2 +- README.md | 20 ++++++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32a6720..b886dcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 @@ -86,7 +86,7 @@ jobs: PIP_DISABLE_PIP_VERSION_CHECK: "1" steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python 3.12 uses: actions/setup-python@v6 @@ -134,7 +134,7 @@ jobs: SKIP_CF_TEST: "0" steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python 3.12 uses: actions/setup-python@v6 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8033321..3c8e06b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: PIP_DISABLE_PIP_VERSION_CHECK: "1" steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 diff --git a/README.md b/README.md index 2464161..9e55770 100644 --- a/README.md +++ b/README.md @@ -176,20 +176,24 @@ import asyncio from web_scraper_toolkit.browser.config import BrowserConfig from web_scraper_toolkit.browser.playwright_handler import PlaywrightManager + async def main() -> None: - cfg = BrowserConfig.from_dict({ - "headless": True, - "browser_type": "chromium", - "native_fallback_policy": "on_blocked", - "host_profiles_enabled": True, - "host_profiles_path": "./host_profiles.json", - "host_profiles_read_only": False, - }) + cfg = BrowserConfig.from_dict( + { + "headless": True, + "browser_type": "chromium", + "native_fallback_policy": "on_blocked", + "host_profiles_enabled": True, + "host_profiles_path": "./host_profiles.json", + "host_profiles_read_only": False, + } + ) async with PlaywrightManager(cfg) as manager: content, final_url, status = await manager.smart_fetch("https://example.com") print({"status": status, "url": final_url, "has_content": bool(content)}) + asyncio.run(main()) ``` From 56b9e0e9f8cb20f3c7b22f1b5273f4ac28d9da73 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 3 Aug 2026 15:17:20 +0000 Subject: [PATCH 2/2] fix(ci): pin ruff 0.15.17 to avoid lint rule drift on floating installs Co-authored-by: v1x0r87 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b886dcc..44e6ad5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Install project and tooling run: | python -m pip install -e . - python -m pip install -U "ruff>=0.15.0" mypy pytest pytest-asyncio build twine types-requests types-beautifulsoup4 + python -m pip install -U "ruff==0.15.17" mypy pytest pytest-asyncio build twine types-requests types-beautifulsoup4 - name: Ruff format check run: ruff format --check .