chore: align ruff lint scope (#3139)

Assisted-by: Codex (model: GPT-5, autonomous)
This commit is contained in:
Pascal THUET
2026-07-21 15:37:27 +02:00
committed by GitHub
parent d6fa0460ed
commit ec45dbd791
4 changed files with 4 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ jobs:
python-version: "3.14"
- name: Run ruff check
run: uvx ruff check src/
run: uvx ruff check src tests
pytest:
runs-on: ${{ matrix.os }}

View File

@@ -120,10 +120,10 @@ generated metadata, then add the import and `_register()` call in
## 7. Run Lint / Basic Checks
CI enforces `ruff check src/` (see `.github/workflows/test.yml`), so run it locally before pushing:
CI enforces `ruff check src tests` (see `.github/workflows/test.yml`), so run it locally before pushing:
```bash
uvx ruff check src/
uvx ruff check src tests
```
You can also quickly sanity check importability:

View File

@@ -11,7 +11,6 @@ import pytest
from tests.conftest import requires_bash
from tests.extensions.test_extension_agent_context import (
BASH,
POWERSHELL,
_bash_posix_path,
_run_bash_agent_context_script,

View File

@@ -144,7 +144,7 @@ class TestResolveGitHubReleaseAssetApiUrl:
@contextmanager
def failing_open(url, timeout=None, extra_headers=None):
raise urllib.error.URLError("network error")
yield # noqa: unreachable
yield # pragma: no cover
result = resolve_github_release_asset_api_url(
"https://github.com/org/repo/releases/download/v1/pack.zip",