Skip to content

feat: scverse-misc settings, set default n_jobs=4 - #4081

Merged
flying-sheep merged 22 commits into
mainfrom
pa/settings
May 7, 2026
Merged

flying-sheep merged 22 commits into
mainfrom
pa/settings

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Apr 21, 2026 •

Copy link
Copy Markdown
Member

I think having a handful of jobs is a better default than -1 for number of cores, no?

TODO:

  • simplify logging stuff. settings.logpath can probably just be a deprecated alias to Path(settings.logfile.name), and all the side effects can happen in model validators

@codecov

codecov Bot commented Apr 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.59%. Comparing base (bad8435) to head (32872b8).
⚠️ Report is 78 commits behind head on main.

Files with missing lines Patch % Lines
src/scanpy/_settings/__init__.py 96.00% 4 Missing ⚠️
src/scanpy/_compat.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4081      +/-   ##
==========================================
- Coverage   79.62%   79.59%   -0.04%     
==========================================
  Files         120      119       -1     
  Lines       12955    12778     -177     
==========================================
- Hits        10316    10171     -145     
+ Misses       2639     2607      -32     
Flag Coverage Δ
hatch-test.low-vers 78.87% <95.20%> (-0.07%) ⬇️
hatch-test.pre 79.43% <93.60%> (+10.03%) ⬆️

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

Files with missing lines Coverage Δ
src/scanpy/_settings/presets.py 82.81% <100.00%> (-3.70%) ⬇️
src/scanpy/_settings/verbosity.py 81.08% <100.00%> (-0.32%) ⬇️
src/scanpy/datasets/_datasets.py 91.97% <100.00%> (ø)
...c/scanpy/experimental/pp/_highly_variable_genes.py 94.23% <100.00%> (ø)
src/scanpy/logging.py 97.29% <100.00%> (+0.04%) ⬆️
src/scanpy/preprocessing/_highly_variable_genes.py 95.07% <100.00%> (ø)
src/scanpy/tools/_leiden.py 91.95% <ø> (ø)
src/scanpy/tools/_louvain.py 100.00% <ø> (ø)
src/scanpy/tools/_tsne.py 74.41% <ø> (-19.06%) ⬇️
src/scanpy/_compat.py 87.03% <85.71%> (+3.36%) ⬆️
... and 1 more

... and 2 files with indirect coverage changes

@flying-sheep
flying-sheep marked this pull request as ready for review April 28, 2026 13:24
@flying-sheep flying-sheep added this to the 1.13.0 milestone Apr 28, 2026
@flying-sheep

Copy link
Copy Markdown
Member Author

OK, only issue is that the autosummary tables on the settings page don’t have individual settings docstrings anymore.

@flying-sheep
flying-sheep requested a review from ilan-gold April 30, 2026 15:27
@flying-sheep flying-sheep changed the title feat: pydantic settings feat: pydantic-based settings, set default n_jobs=4 Apr 30, 2026
@flying-sheep flying-sheep changed the title feat: pydantic-based settings, set default n_jobs=4 feat: scverse-misk settings, set default n_jobs=4 May 7, 2026
@flying-sheep flying-sheep changed the title feat: scverse-misk settings, set default n_jobs=4 feat: scverse-misc settings, set default n_jobs=4 May 7, 2026

@ilan-gold ilan-gold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice logpath / logfile simplification!

Comment thread src/scanpy/_settings/__init__.py Resolved
Comment thread src/scanpy/_settings/__init__.py Resolved
Comment thread src/scanpy/_settings/verbosity.py Resolved
@flying-sheep
flying-sheep requested a review from ilan-gold May 7, 2026 14:48
@flying-sheep

Copy link
Copy Markdown
Member Author

test failures should only be #4106

@flying-sheep
flying-sheep merged commit cf592c0 into main May 7, 2026
17 of 21 checks passed
@flying-sheep
flying-sheep deleted the pa/settings branch May 7, 2026 15:22
flying-sheep added a commit that referenced this pull request May 7, 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.

2 participants