(1) tasks/HOTFIXES.md: add 2026-05-20 entry for path-sanitize gap in
module_path_for_python / _tsjs (promised in task spec line 55 but
not landed in round 0). Bidirectional cross-link added.
(2) crates/kebab-parse-code: dedup filename_from_workspace_path /
strip_extension / join_symbol via new pub(crate) module scaffold.rs.
Removed 9 byte-identical fn copies across rust/python/typescript/
javascript extractors. Pure refactor — no behavior change.
(3) crates/kebab-parse-code/tests/fixtures/sample.py: @staticmethod was
semantically inappropriate on a module-level fn (class-method
decorator). Changed to @no_type_check; test assertion updated.
(5)+(6) crates/kebab-parse-code/src/lang.rs: add tests/test_foo.py case
to module_path_for_python test + doc clarifying that tests/ /
examples/ / benches/ are intentionally not stripped.
(4) PUSH BACK — TS/JS class decorator handling is design intent of 1B
1차 (typescript.rs:242-244 + HOTFIXES entry 2 already in place).
No code change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
354 B
Python
27 lines
354 B
Python
"""sample fixture."""
|
|
import os
|
|
|
|
ANSWER = 42
|
|
|
|
@no_type_check
|
|
def free(x):
|
|
"""free fn."""
|
|
return x + 1
|
|
|
|
class Foo:
|
|
"""doc."""
|
|
def double(self, n):
|
|
return n * 2
|
|
|
|
@classmethod
|
|
def name(cls):
|
|
return "foo"
|
|
|
|
class Outer:
|
|
class Inner:
|
|
def helper(self):
|
|
return True
|
|
|
|
def with_decorator():
|
|
pass
|