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

bramp / build-along / 19794685793
89%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2025 06:00AM UTC
Jobs 1
Files 139
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

30 Nov 2025 05:59AM UTC coverage: 90.646% (+0.03%) from 90.62%
19794685793

push

github

bramp
refactor(classifier): Use specific config types in Score objects

Updated several `Score` subclasses (`_StepNumberScore`, `_PageNumberScore`, `_PartCountScore`, `_PartNumberScore`) to use their specific configuration objects (e.g., `StepNumberConfig`) or explicit weights instead of the monolithic `ClassifierConfig`. This improves type safety and decoupling by ensuring that `Score` objects only receive the configuration relevant to them.

The logic for resolving `font_size_hints` (which are shared in `ClassifierConfig`) was moved to the respective classifier's `_score` method, and the resulting weights or scores are now passed directly to the `Score` objects.

Additionally, `conftest.py` was updated to correctly instantiate `_PartCountScore` with the new `PartCountConfig` and `font_size_weight` parameters, fixing test failures introduced by the refactoring.

34 of 34 new or added lines in 4 files covered. (100.0%)

332 existing lines in 18 files now uncovered.

9332 of 10295 relevant lines covered (90.65%)

0.91 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.07
0.13% src/build_a_long/pdf_extract/classifier/classifier.py
1
98.25
0.03% src/build_a_long/pdf_extract/classifier/parts/part_number_classifier.py
1
98.28
0.06% src/build_a_long/pdf_extract/classifier/steps/step_number_classifier.py
2
97.14
0.08% src/build_a_long/pdf_extract/classifier/parts/part_count_classifier.py
2
97.4
0.3% src/build_a_long/pdf_extract/classifier/steps/diagram_classifier.py
2
97.67
0.03% src/build_a_long/pdf_extract/extractor/page_blocks.py
2
99.32
0.04% src/build_a_long/pdf_extract/main_test.py
3
93.9
0.0% src/build_a_long/pdf_extract/classifier/steps/rotation_symbol_classifier.py
4
95.83
0.13% src/build_a_long/pdf_extract/classifier/pages/page_number_classifier.py
10
92.57
-2.36% src/build_a_long/pdf_extract/validation/rules.py
13
70.83
-2.85% src/build_a_long/pdf_extract/validation/runner.py
14
47.06
-0.77% src/build_a_long/downloader/verify/verify.py
14
90.86
0.11% src/build_a_long/pdf_extract/classifier/classification_result.py
17
87.84
-0.48% src/build_a_long/pdf_extract/main.py
22
68.12
-31.88% src/build_a_long/pdf_extract/cli/io.py
32
88.51
-0.02% src/build_a_long/pdf_extract/extractor/lego_page_elements.py
63
69.07
1.18% src/build_a_long/pdf_extract/extractor/extractor.py
129
21.22
-1.73% src/build_a_long/pdf_extract/cli/reporting.py
Jobs
ID Job ID Ran Files Coverage
1 19794685793.1 30 Nov 2025 06:00AM UTC 139
90.65
GitHub Action Run
Source Files on build 19794685793
  • Tree
  • List 139
  • Changed 32
  • Source Changed 32
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19794685793
  • 59625196 on github
  • Prev Build on main (#19776697116)
  • Next Build on main (#19796282858)
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