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

bramp / build-along / 19750739274
89%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2025 12:34AM UTC
Jobs 1
Files 111
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 12:32AM UTC coverage: 89.838% (-0.05%) from 89.884%
19750739274

push

github

bramp
refactor: convert Score details to be a abstract Score object with a score method that returns a Weight.

- Convert Score base class from ABC with @dataclass to Pydantic BaseModel
- Add Weight type alias (Annotated[float, Ge(0), Le(1)]) for score range
- Update all Score implementations to inherit from Pydantic BaseModel
- Change score() return type from float to Weight across all implementations
- Remove arbitrary_types_allowed from Candidate (no longer needed)
- Add isinstance check in step_classifier_test for _StepScore.sort_key()
- Pass config during Score construction instead of to score() method

Benefits:
- Better type safety with Weight indicating expected 0.0-1.0 range
- Proper Pydantic integration without special configuration
- Cleaner code without arbitrary_types_allowed workaround
- All Score objects properly validated and serializable

All tests passing, type checking successful.

74 of 80 new or added lines in 20 files covered. (92.5%)

7435 of 8276 relevant lines covered (89.84%)

0.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.96
-1.33% src/build_a_long/pdf_extract/classifier/pages/page_classifier.py
1
91.91
-0.68% src/build_a_long/pdf_extract/classifier/parts/parts_classifier.py
1
93.1
-3.33% src/build_a_long/pdf_extract/classifier/parts/parts_image_classifier.py
1
81.42
-0.16% src/build_a_long/pdf_extract/classifier/parts/piece_length_classifier.py
1
96.58
-0.65% src/build_a_long/pdf_extract/classifier/steps/step_classifier.py
1
83.33
src/build_a_long/pdf_extract/classifier/test_utils.py
Jobs
ID Job ID Ran Files Coverage
1 19750739274.1 28 Nov 2025 12:34AM UTC 111
89.84
GitHub Action Run
Source Files on build 19750739274
  • Tree
  • List 111
  • Changed 19
  • Source Changed 19
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19750739274
  • cbf6181b on github
  • Prev Build on main (#19750071968)
  • Next Build on main (#19750852706)
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