Skip to content

Commit 94941d6

Browse files
IronAdamantclaude
andcommitted
chore(release): bump to v0.9.2 — fix CI lint failures
Resolves 29 ruff errors blocking the CI matrix (E402/F401/F841/F403/F405) across chisel/engine.py, chisel/mcp_server.py, two example extractors, and one test module. No behavior changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5856fc5 commit 94941d6

8 files changed

Lines changed: 24 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2222

2323
## [Unreleased]
2424

25+
## [0.9.2] — 2026-04-17
26+
27+
### Fixed
28+
29+
- **CI lint failures**: Resolved 29 ruff errors blocking the CI matrix. `chisel/engine.py``JobCancelledError` and `logger` moved below the import block (was triggering 12× E402); removed unused `StaticImportIndex` import (F401); removed unused `lang = self.mapper.detect_framework(tf)` local (F841). `chisel/mcp_server.py` — removed unused `from socketserver import ThreadingMixIn` (F401). `examples/extractors/lsp_symbol_extractor.py` — removed unused `import uuid` (F401). `examples/extractors/swift_syntax_extractor.py` — added `# noqa: F403 / F405` on the star import and the symbols it provides (intentional — optional third-party dep). `tests/test_language_frameworks.py` — removed unused `import os` (F401). No behavior changes.
30+
2531
## [0.9.1] — 2026-04-17
2632

2733
### Fixed

chisel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.9.1"
1+
__version__ = "0.9.2"

chisel/engine.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
except ImportError: # pragma: no cover
1414
tomllib = None
1515

16-
logger = logging.getLogger(__name__)
17-
18-
19-
class JobCancelledError(Exception):
20-
"""Raised when a background analyze/update job is cancelled mid-flight."""
21-
2216
from chisel.ast_utils import (
2317
_EXTENSION_MAP,
2418
_SKIP_DIRS,
@@ -39,9 +33,14 @@ class JobCancelledError(Exception):
3933
from chisel.risk_meta import apply_risk_reweighting, build_risk_meta
4034
from chisel.rwlock import RWLock
4135
from chisel.storage import Storage
42-
from chisel.static_test_imports import StaticImportIndex
4336
from chisel.test_mapper import TestMapper
4437

38+
logger = logging.getLogger(__name__)
39+
40+
41+
class JobCancelledError(Exception):
42+
"""Raised when a background analyze/update job is cancelled mid-flight."""
43+
4544

4645
# Derived from ast_utils._EXTENSION_MAP to avoid duplication.
4746
_CODE_EXTENSIONS = frozenset(_EXTENSION_MAP)
@@ -2065,7 +2064,6 @@ def _discover_and_build_edges(self, code_files):
20652064
content = fh.read()
20662065
deps = self.mapper.extract_test_dependencies(rel_tf, content)
20672066
all_paths = set(self.storage.get_resolvable_code_file_paths())
2068-
lang = self.mapper.detect_framework(tf)
20692067
py_imp = rel_tf.endswith(".py")
20702068
from chisel.import_graph import _resolve_import_targets
20712069
for dep in deps:

chisel/mcp_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import logging
1212
import threading
1313
from http.server import BaseHTTPRequestHandler, HTTPServer
14-
from socketserver import ThreadingMixIn
1514

1615
from chisel.engine import ChiselEngine
1716
from chisel.next_steps import compute_next_steps

examples/extractors/lsp_symbol_extractor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import json
1919
import subprocess
2020
import threading
21-
import uuid
2221

2322
from chisel.ast_utils import CodeUnit, register_extractor
2423

examples/extractors/swift_syntax_extractor.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from chisel.ast_utils import CodeUnit, register_extractor
1212

1313
try:
14-
from swift_syntax import *
14+
from swift_syntax import * # noqa: F403
1515
from swift_syntax.parser import Parser
1616
except ImportError as exc:
1717
raise ImportError(
@@ -28,7 +28,7 @@ def swift_syntax_extractor(file_path: str, content: str) -> list[CodeUnit]:
2828
units = []
2929

3030
def _walk(node):
31-
if isinstance(node, FunctionDeclSyntax):
31+
if isinstance(node, FunctionDeclSyntax): # noqa: F405
3232
name = node.name.text if node.name else "anonymous"
3333
units.append(CodeUnit(
3434
file_path=file_path,
@@ -37,16 +37,16 @@ def _walk(node):
3737
line_start=node.position.line,
3838
line_end=node.end_position.line,
3939
))
40-
elif isinstance(node, (ClassDeclSyntax, StructDeclSyntax,
41-
EnumDeclSyntax, ActorDeclSyntax,
42-
ProtocolDeclSyntax)):
40+
elif isinstance(node, (ClassDeclSyntax, StructDeclSyntax, # noqa: F405
41+
EnumDeclSyntax, ActorDeclSyntax, # noqa: F405
42+
ProtocolDeclSyntax)): # noqa: F405
4343
name = node.name.text if node.name else "anonymous"
4444
kind_map = {
45-
ClassDeclSyntax: "class",
46-
StructDeclSyntax: "struct",
47-
EnumDeclSyntax: "enum",
48-
ActorDeclSyntax: "actor",
49-
ProtocolDeclSyntax: "interface",
45+
ClassDeclSyntax: "class", # noqa: F405
46+
StructDeclSyntax: "struct", # noqa: F405
47+
EnumDeclSyntax: "enum", # noqa: F405
48+
ActorDeclSyntax: "actor", # noqa: F405
49+
ProtocolDeclSyntax: "interface", # noqa: F405
5050
}
5151
units.append(CodeUnit(
5252
file_path=file_path,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "chisel-test-impact"
7-
version = "0.9.1"
7+
version = "0.9.2"
88
description = "Test impact analysis and code intelligence for LLM agents"
99
readme = "README.md"
1010
requires-python = ">=3.11"

tests/test_language_frameworks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Framework-specific fixture tests for test_mapper detection."""
22

3-
import os
4-
53
import pytest
64

75
from chisel.ast_utils import extract_code_units

0 commit comments

Comments
 (0)