Skip to content

💫 Toolkit to help you get started with SDD or any other process!

chore: align ruff lint scope (#3139)

Pascal THUETec45dbd791c5
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fa4c1e8b6..488176b26 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 286938c1c..6c94be46d 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 957415708..25b5ff945 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 @@ 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,
diff --git a/tests/test_github_http.py b/tests/test_github_http.py
index 3f6ca8e53..a6a0dd9e2 100644
--- a/tests/test_github_http.py
+++ b/tests/test_github_http.py
@@ -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",