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

safl / senfd / 10188161155 / 1
96%
main: 96%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2024 09:50PM UTC
Files 11
Run time 0s
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

31 Jul 2024 09:42PM UTC coverage: 86.139% (+1.2%) from 84.901%
10188161155.1

push

github

safl
Refactor(errors): Wrap Errors in TableError(BaseModel)

Refactored error types to have a common parent error type (`TableError`)
to address the mypy error on Windows. Initially, NamedTuple classes
were considered, but they undermined inheritance benefits and introduced
additional issues. Therefore, `pydantic.BaseModel` was used for the
following advantages:

- Provides serialization, eliminating the need for `error_to_dict()`.
- Enforces the use of named arguments, reducing potential errors when refactoring argument order.
- Fixes the mypy issue with missing type information.

src\senfd\errors.py:17: error: Invalid type alias: expression is not a valid type  [valid-type]
src\senfd\errors.py:17: error: Unsupported left operand type for | ("type[TableOfFiguresError]")  [operator]
src\senfd\errors.py:25: error: Variable "senfd.errors.TableError" is not valid as a type  [valid-type]
src\senfd\errors.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
src\senfd\errors.py:26: error: TableError? has no attribute "_asdict"  [attr-defined]
Found 4 errors in 1 file (checked 18 source files)

Signed-off-by: Simon A. F. Lund <os@safl.dk>

348 of 404 relevant lines covered (86.14%)

0.86 hits per line

Source Files on job 10188161155.1
  • Tree
  • List 11
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10188161155
  • 047f0989 on github
  • Prev Job for on main (#10187498204.1)
  • Next Job for on main (#10188204776.1)
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