diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa4c1e8b66..488176b260 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/docs/local-development.md b/docs/local-development.md index 286938c1cf..6c94be46df 100644 --- a/docs/local-development.md +++ b/docs/local-development.md @@ -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: diff --git a/tests/extensions/test_update_agent_context_feature_json.py b/tests/extensions/test_update_agent_context_feature_json.py index 957415708c..25b5ff9457 100644 --- a/tests/extensions/test_update_agent_context_feature_json.py +++ b/tests/extensions/test_update_agent_context_feature_json.py @@ -11,7 +11,6 @@ from tests.conftest import requires_bash from tests.extensions.test_extension_agent_context import ( - BASH, POWERSHELL, _bash_posix_path, _run_bash_agent_context_script, diff --git a/tests/test_github_http.py b/tests/test_github_http.py index 3f6ca8e53d..a6a0dd9e23 100644 --- a/tests/test_github_http.py +++ b/tests/test_github_http.py @@ -144,7 +144,7 @@ def test_returns_none_on_network_error(self): @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",