Skip to content

refactor: split long functions - #4561

Merged
flying-sheep merged 1 commit into
mainfrom
complexity-split
Nov 27, 2026
Merged

flying-sheep merged 1 commit into
mainfrom
complexity-split

Conversation

@flying-sheep

Copy link
Copy Markdown
Member

some splits might not be ideal, but so many PRs add / make spaghetti …

@flying-sheep flying-sheep added this to the 1.13.1 milestone Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.34513% with 512 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.67%. Comparing base (fa7be1e) to head (a87453f).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/scanpy/preprocessing/_harmony/_kernels.py 16.29% 113 Missing ⚠️
src/scanpy/plotting/legacy/_tools/paga.py 79.78% 111 Missing ⚠️
src/scanpy/external/exporting.py 9.67% 56 Missing ⚠️
src/scanpy/plotting/legacy/_tools/__init__.py 69.59% 45 Missing ⚠️
src/scanpy/tools/_paga.py 7.69% 36 Missing ⚠️
src/scanpy/tools/_sim.py 75.92% 26 Missing ⚠️
src/scanpy/tools/_louvain.py 8.33% 22 Missing ⚠️
src/scanpy/plotting/legacy/_dotplot.py 84.21% 18 Missing ⚠️
src/scanpy/io/_read.py 56.75% 16 Missing ⚠️
src/scanpy/plotting/legacy/_utils.py 78.78% 14 Missing ⚠️
... and 11 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4561      +/-   ##
==========================================
- Coverage   85.24%   84.67%   -0.57%     
==========================================
  Files         140      140              
  Lines       12549    13833    +1284     
==========================================
+ Hits        10697    11713    +1016     
- Misses       1852     2120     +268     
Flag Coverage Δ
hatch-test.low-vers 80.30% <77.25%> (-0.14%) ⬇️
hatch-test.pre 84.47% <77.34%> (-0.55%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...c/scanpy/experimental/pp/_highly_variable_genes.py 100.00% <100.00%> (ø)
src/scanpy/get/_use.py 90.65% <100.00%> (+0.08%) ⬆️
src/scanpy/plotting/legacy/_anndata.py 88.03% <ø> (+2.30%) ⬆️
src/scanpy/plotting/legacy/_baseplot_class.py 80.85% <100.00%> (+0.48%) ⬆️
src/scanpy/preprocessing/_combat.py 93.38% <100.00%> (-5.28%) ⬇️
src/scanpy/preprocessing/_harmony/core.py 100.00% <100.00%> (ø)
src/scanpy/preprocessing/_scrublet/__init__.py 98.82% <100.00%> (+0.49%) ⬆️
src/scanpy/tools/_dpt.py 87.66% <100.00%> (+0.08%) ⬆️
src/scanpy/plotting/legacy/_preprocessing.py 84.61% <93.75%> (-1.66%) ⬇️
src/scanpy/preprocessing/_simple.py 96.08% <96.22%> (-0.35%) ⬇️
... and 19 more

@flying-sheep
flying-sheep merged commit 35510c2 into main Nov 27, 2026
17 of 19 checks passed
@flying-sheep
flying-sheep deleted the complexity-split branch November 27, 2026 15:38
flying-sheep added a commit that referenced this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant