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

bramp / build-along / 19751674072
89%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2025 01:42AM UTC
Jobs 1
Files 118
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

28 Nov 2025 01:40AM UTC coverage: 89.023% (-0.8%) from 89.847%
19751674072

push

github

bramp
refactor(classifier): reorganize text modules and break circular dependencies

Major Changes:
- Created text/ subdirectory for text-related classifier modules
- Moved text_histogram, text_extractors, font_size_hints to text/
- Created constants.py to resolve circular dependency issue

Module Organization:
- classifier/text/__init__.py: Package exports for text modules
- classifier/text/text_histogram.py: TextHistogram class
- classifier/text/text_extractors.py: Text extraction functions
- classifier/text/font_size_hints.py: FontSizeHints class

Circular Dependency Resolution:
- Created classifier/constants.py with CATALOG_ELEMENT_ID_THRESHOLD
- Removed ClassVar from PageHintCollection
- Updated font_size_hints.py and page_hint_collection.py to import from constants
- Fixed package-level circular import by importing TextHistogram directly from module
- Added TODO to consider moving constant to ClassifierConfig

Bug Fixes:
- Fixed DrawableItem frozen model issue in drawing.py
- Create new instances with depth instead of mutating frozen objects

Import Updates:
- Updated all imports across ~15 files to use new module paths
- Updated classifier/__init__.py to re-export text module classes

Tests:
- All tests passing (42/42 test files)
- Type checking passes
- Code formatted with ruff

32 of 32 new or added lines in 23 files covered. (100.0%)

180 existing lines in 19 files now uncovered.

7429 of 8345 relevant lines covered (89.02%)

0.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.85
0.03% src/build_a_long/pdf_extract/classifier/classifier.py
1
98.21
0.1% src/build_a_long/pdf_extract/classifier/parts/part_number_classifier.py
1
98.65
0.04% src/build_a_long/pdf_extract/classifier/steps/diagram_classifier.py
1
98.21
0.1% src/build_a_long/pdf_extract/classifier/steps/step_number_classifier.py
2
97.4
0.07% src/build_a_long/pdf_extract/classifier/bags/bag_number_classifier.py
2
97.06
0.14% src/build_a_long/pdf_extract/classifier/parts/part_count_classifier.py
2
93.55
0.44% src/build_a_long/pdf_extract/classifier/parts/parts_image_classifier.py
2
97.47
0.0% src/build_a_long/pdf_extract/cli/io.py
2
99.03
0.0% src/build_a_long/pdf_extract/main_test.py
3
94.67
0.15% src/build_a_long/pdf_extract/classifier/parts/parts_list_classifier.py
4
95.7
0.14% src/build_a_long/pdf_extract/classifier/pages/page_number_classifier.py
5
82.14
4.87% src/build_a_long/pdf_extract/classifier/__init__.py
5
96.62
0.05% src/build_a_long/pdf_extract/classifier/steps/step_classifier.py
7
92.03
0.12% src/build_a_long/pdf_extract/classifier/parts/parts_classifier.py
11
82.86
0.0% src/build_a_long/pdf_extract/drawing/drawing.py
12
87.0
0.27% src/build_a_long/pdf_extract/classifier/bags/new_bag_classifier.py
14
81.74
0.32% src/build_a_long/pdf_extract/classifier/parts/piece_length_classifier.py
16
90.8
-2.53% src/build_a_long/pdf_extract/classifier/classification_result.py
89
18.26
-65.36% src/build_a_long/pdf_extract/classifier/classifier_rules_test.py
Jobs
ID Job ID Ran Files Coverage
1 19751674072.1 28 Nov 2025 01:42AM UTC 118
89.02
GitHub Action Run
Source Files on build 19751674072
  • Tree
  • List 118
  • Changed 41
  • Source Changed 41
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19751674072
  • 09ecdf9a on github
  • Prev Build on main (#19750852706)
  • Next Build on main (#19756668311)
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