Skip to content

Conversation

@rvalyi
Copy link
Member

@rvalyi rvalyi commented Aug 30, 2025

Adds an --shrink-aggressive option to the CLI and a corresponding aggressive=True parameter to the shrink_python_file function.

When enabled, this option prevents writing method bodies ('pass') for shrunken Python files, retaining only class and field definitions.

Also adds a new test file for the shrinker functionality.

@codecov
Copy link

codecov bot commented Aug 30, 2025

Codecov Report

❌ Patch coverage is 91.42857% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.15%. Comparing base (aeed0c0) to head (2c95a3e).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/akaidoo/shrinker.py 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
+ Coverage   64.81%   69.15%   +4.34%     
==========================================
  Files           4        5       +1     
  Lines         719      749      +30     
  Branches      137      138       +1     
==========================================
+ Hits          466      518      +52     
+ Misses        191      167      -24     
- Partials       62       64       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rvalyi rvalyi force-pushed the feature/aggressive-shrinking branch 3 times, most recently from 8feffd9 to 84813c8 Compare August 30, 2025 06:41
@rvalyi rvalyi force-pushed the feature/aggressive-shrinking branch from 84813c8 to 2c95a3e Compare August 30, 2025 06:42
@rvalyi rvalyi merged commit ea48758 into master Aug 30, 2025
8 checks passed
@ak-git-bot ak-git-bot deleted the feature/aggressive-shrinking branch August 30, 2025 06:45
rvalyi added a commit that referenced this pull request Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants