• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

speedyk-005 / chunklet-py / 22282498046
91%

Build:
DEFAULT BRANCH: main
Ran 22 Feb 2026 06:09PM UTC
Jobs 5
Files 38
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Feb 2026 06:08PM UTC coverage: 87.005% (-0.3%) from 87.349%
22282498046

push

github

web-flow
# v2.2.0: The Unification Edition (#12)

* feat(code_chunker): upgrade metadata parsing and expand language patterns

- Upgrade METADATA pattern to use recursive sub-routines (?1), enabling
  proper parsing of nested parentheses in decorators and attributes
- Add support for PHP 8 attributes (#[Attribute]) and VB.NET metadata (<...>)
- Expand line comment patterns to include Forth (\|)
- Move Erlang (%%) and Nim (##) documentation markers to Style 2
  prefixed comments for better chunking continuity
- Broaden function and namespace detection to include ColdFusion
  components and 'export' modifiers
- Improve OPENER/CLOSURE reliability by supporting Pascal-style
  case-insensitive BEGIN/END and stricter line-end anchoring
- Add open curly bracket in the function pattern to support more languages

* refactor(code_chunker): consolidate block state management and clean up extraction logic

- Refactored _code_structure_extractor.py to centralize structural state management and resolve logic bugs in block detection.
- SRP: Moved block_indent_level updates from _handle_annotated_line to _handle_block_start to ensure metadata handling remains stateless.
- Logic Cleanup: Refined boolean guards to correctly distinguish between nested closures and sibling methods, ensuring proper snippet flushing.
- State Machine: Centralized the indentation 'anchor' logic to prevent improper block merging while maintaining parent-child relations.
- Additional improvements to decorator handling, function detection, and overall chunking reliability.

* feat(code_chunker): add multi-line string assignment pattern to prevent improper chunking

Introduced MULTI_LINE_STRING_ASSIGN to patterns.py to ensure large string blocks are treated as single units.

Extractor safety: Prevents the code chunker from splitting or flushing inside multi-line string declarations.

Robustness: Ensures that content within triple-quotes (or equivalent multi-line syntax) remains intact during structure ex... (continued)

285 of 336 new or added lines in 24 files covered. (84.82%)

5 existing lines in 2 files now uncovered.

1406 of 1616 relevant lines covered (87.0%)

4.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
62.86
-37.14% src/chunklet/__init__.py
6
71.43
src/chunklet/common/deprecation.py
6
89.94
-1.9% src/chunklet/document_chunker/document_chunker.py
6
90.0
1.59% src/chunklet/sentence_splitter/sentence_splitter.py
5
93.75
-3.26% src/chunklet/code_chunker/code_chunker.py
4
95.0
4.19% src/chunklet/code_chunker/_code_structure_extractor.py
3
81.4
7.71% src/chunklet/common/path_utils.py
3
73.91
1.1% src/chunklet/visualizer/visualizer.py
2
73.68
-1.32% src/chunklet/base_chunker.py
1
75.0
src/chunklet/common/logging_utils.py
1
92.09
src/chunklet/document_chunker/_plain_text_chunker.py
1
93.44
-1.29% src/chunklet/document_chunker/processors/pdf_processor.py

Coverage Regressions

Lines Coverage ∆ File
3
93.75
-3.26% src/chunklet/code_chunker/code_chunker.py
2
95.0
4.19% src/chunklet/code_chunker/_code_structure_extractor.py
Jobs
ID Job ID Ran Files Coverage
1 22282498046.1 22 Feb 2026 06:09PM UTC 38
87.0
GitHub Action Run
2 22282498046.2 22 Feb 2026 06:09PM UTC 38
87.0
GitHub Action Run
3 22282498046.3 22 Feb 2026 06:10PM UTC 38
87.0
GitHub Action Run
4 22282498046.4 22 Feb 2026 06:10PM UTC 38
87.0
GitHub Action Run
5 22282498046.5 22 Feb 2026 06:10PM UTC 38
87.0
GitHub Action Run
Source Files on build 22282498046
  • Tree
  • List 38
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7bafbc22 on github
  • Prev Build on main (#20901127843)
  • Next Build on main (#22283161250)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc