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

johanjoensson / impurityModel / 29706824758
91%

Build:
DEFAULT BRANCH: master
Ran 19 Jul 2026 11:07PM UTC
Jobs 1
Files 161
Run time 1min
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

19 Jul 2026 10:44PM UTC coverage: 89.694% (+0.06%) from 89.636%
29706824758

push

github

johanjoensson
Make ruff and mypy clean across the package

ruff goes 793 -> 0 and mypy 218 -> 0 ("Success: no issues found"), so the whole
`make check` gate (ruff + black + mypy) is green alongside the pre-commit hooks.

Mechanical ruff fixes: import sorting (I001), unused imports (F401), unused
noqa (RUF100), set/dict comprehensions (C4xx), unused unpacked variables
(RUF059, renamed to _), unused loop variables (B007), loop-variable rebinding
(PLW2901, renamed to *_raw), collapsible ifs (SIM102/108), long lines (E501,
wrapped comments/docstrings/f-strings), and ambiguous unicode in comments and
docstrings (RUF002/003, en-dash/minus/times -> ASCII).

Genuine defects the linters surfaced, fixed rather than silenced:
- F811: three duplicated test definitions in test_manybody_basis.py meant the
  earlier copy silently never ran. Removed the true duplicates and renamed the
  serial test_state_mpi (comm=None, no mpi marker) to test_state.
- F821: mpi_comm.py referenced ManyBodyBlockState from annotations without
  importing it.
- F841: eigensolvers.py computed max_subspace_blocks (and num_wanted) and never
  passed them to any solver -- dead since a refactor.
- A001/A002: op_parser.py shadowed the `str` builtin as a parameter it also
  rebound; renamed to `text`.

Type fixes for mypy: accurate Optional/union signatures, annotations for
otherwise-uninferable containers, @overload for Basis.contains (its return type
depends on whether it is handed one state or many), Iterator (not Iterable)
where next() is called, and explicit None-narrowing asserts in the MPI paths of
basis_split.py/gf_units.py where the invariants hold but are not visible to the
checker. manybody_basis.py drops a dead pre-3.10 collections fallback.

greens_function.py keeps its backward-compat re-export block, now marked
`# noqa: F401`: those names are imported purely so `greens_function.X` keeps
resolving after the gf_primitives/gf_convergence/gf_shift_recycling split, and
an unannotated `ruff --fix` s... (continued)

395 of 439 new or added lines in 89 files covered. (89.98%)

9 existing lines in 3 files now uncovered.

20312 of 22646 relevant lines covered (89.69%)

0.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
90.43
0.28% src/impurityModel/ed/manybody_basis.py
5
22.11
0.22% src/impurityModel/test/test_block_lanczos_perf.py
4
89.55
0.0% src/impurityModel/ed/groundstate.py
3
72.92
0.0% src/impurityModel/ed/basis_generation.py
3
91.09
-0.02% src/impurityModel/ed/cipsi_solver.py
3
74.87
0.0% src/impurityModel/ed/susceptibility.py
3
41.41
0.0% src/impurityModel/scripts/selfenergy.py
3
18.42
0.0% src/impurityModel/test/test_truncation_reliability.py
2
80.46
0.2% src/impurityModel/ed/spectra.py
2
0.0
0.0% src/impurityModel/test/restriction_diagnostics.py
2
26.23
0.0% src/impurityModel/test/test_symmetry_golden.py
1
93.29
-0.29% src/impurityModel/ed/block_structure.py
1
72.0
0.21% src/impurityModel/ed/eigensolvers.py
1
10.24
0.0% src/impurityModel/ed/get_spectra.py
1
88.89
0.0% src/impurityModel/scripts/cli.py
1
57.58
0.0% src/impurityModel/scripts/spectra.py
1
59.57
0.0% src/impurityModel/scripts/susceptibility.py
1
0.0
0.0% src/impurityModel/test/restriction_sweep.py
1
79.25
0.0% src/impurityModel/test/test_apply_perf.py

Coverage Regressions

Lines Coverage ∆ File
7
94.31
0.0% src/impurityModel/ed/gf_shift_recycling.py
1
93.29
-0.29% src/impurityModel/ed/block_structure.py
1
80.46
0.2% src/impurityModel/ed/spectra.py
Jobs
ID Job ID Ran Files Coverage
1 29706824758.1 19 Jul 2026 11:07PM UTC 161
89.69
GitHub Action Run
Source Files on build 29706824758
  • Tree
  • List 161
  • Changed 97
  • Source Changed 97
  • Coverage Changed 53
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29706824758
  • 8eacc994 on github
  • Prev Build on master (#29658194419)
  • Next Build on master (#29752930909)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc