repowisedefeat-beta/defeatbeta-api

defeat-beta / defeatbeta-api

pythonmain00296dd30.5K linessynced 3mo ago

Code health

6.8out of 10Fair

This codebase scores 6.8 out of 10 for code health, which we rate fair. It also scores maintainability 7.5 and static performance 9.2 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 3 of 166 files are git hotspots, and they average 1.1 — which is where the fixes pay off most.

Do next

1 suggested

1 thing worth doing in the week to Jul 14, the last indexed commit.

Worth planning

  • Start breaking up dcf_data (CCN 54, 301 lines): first lift lines 2016-2033

    defeatbeta_api/data/ticker.py:2016

    dcf_data nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 6 files, changed 8 times in 90 days.

    gain
    up to +0.3 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 54, 301 lines, nests 6 deep
    severity
    high
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report
Lines of code
30.5K

Recent activity

All commits

Everything we found

342 open
  • python97%
  • shell3%

Explore this codebase