Skip to content

Commit ec45dbd

Browse files
authored
chore: align ruff lint scope (#3139)
Assisted-by: Codex (model: GPT-5, autonomous)
1 parent d6fa046 commit ec45dbd

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python-version: "3.14"
2525

2626
- name: Run ruff check
27-
run: uvx ruff check src/
27+
run: uvx ruff check src tests
2828

2929
pytest:
3030
runs-on: ${{ matrix.os }}

docs/local-development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ generated metadata, then add the import and `_register()` call in
120120

121121
## 7. Run Lint / Basic Checks
122122

123-
CI enforces `ruff check src/` (see `.github/workflows/test.yml`), so run it locally before pushing:
123+
CI enforces `ruff check src tests` (see `.github/workflows/test.yml`), so run it locally before pushing:
124124

125125
```bash
126-
uvx ruff check src/
126+
uvx ruff check src tests
127127
```
128128

129129
You can also quickly sanity check importability:

tests/extensions/test_update_agent_context_feature_json.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from tests.conftest import requires_bash
1313
from tests.extensions.test_extension_agent_context import (
14-
BASH,
1514
POWERSHELL,
1615
_bash_posix_path,
1716
_run_bash_agent_context_script,

tests/test_github_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_returns_none_on_network_error(self):
144144
@contextmanager
145145
def failing_open(url, timeout=None, extra_headers=None):
146146
raise urllib.error.URLError("network error")
147-
yield # noqa: unreachable
147+
yield # pragma: no cover
148148

149149
result = resolve_github_release_asset_api_url(
150150
"https://github.com/org/repo/releases/download/v1/pack.zip",

0 commit comments

Comments
 (0)