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

johanjoensson / impurityModel / 40071905347
95%

Build:
DEFAULT BRANCH: master
Ran 24 Oct 2026 07:39AM UTC
Jobs 1
Files 83
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

23 Oct 2026 10:40PM UTC coverage: 94.724% (+0.2%) from 94.491%
40071905347

push

github

johanjoensson
chore(lint): make ruff, black and mypy clean across the package

`make check` was red on master after merging nio-iter1-findings: 138 ruff findings
(125 of them pre-existing under ruff 0.15/0.17), one file black would reformat and
40 mypy errors (37 pre-existing). Now `ruff check .`, `black --check .` and
`mypy -p impurityModel` all pass, under ruff 0.15.17 and 0.17.2 alike.

Mostly mechanical: import sorting, unused imports and variables, `dict.fromkeys`,
raw regex patterns in `pytest.raises(match=...)`, docstring lines over 120 columns,
`Optional` dataclass fields spelled `X | None`. The non-mechanical ones:

- `test_block_lanczos_perf.py` reported a `W` buffer that `block_lanczos` stopped
  returning (undefined name in an opt-in benchmark); the row is dropped.
- `gf_solvers.block_Green_sparse` reads `len(alphas)` after a loop that may leave it
  `None`; the block count is now taken once, as 0 in that case.
- `memory_estimate` spells its NaN checks with `math.isnan` instead of `x != x`.
- `plot_spectra` carried a dead `plotted` list; `lie_algebra._residual_r_factor` a
  dead product.
- Two test lambdas closing over a per-iteration list now bind it as a default (B023).
- `PLR0917` (ruff >= 0.17's too-many-positional-arguments) joins `PLR0913` in the
  ignore list; `BlockLanczosCore` and `rspt2spectra` join mypy's no-stubs stanza.

Checked: ruff, black, mypy green; `pytest --co` collects 3346 tests with no errors.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

39 of 42 new or added lines in 18 files covered. (92.86%)

238 existing lines in 22 files now uncovered.

16032 of 16925 relevant lines covered (94.72%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.77
2.15% src/impurityModel/ed/eigensolvers.py
1
88.85
0.66% src/impurityModel/ed/spectra.py
1
89.59
0.0% src/impurityModel/inputformat/build.py

Coverage Regressions

Lines Coverage ∆ File
36
91.9
1.01% src/impurityModel/ed/memory_estimate.py
28
94.8
-0.49% src/impurityModel/ed/dc_criteria.py
28
92.91
0.4% src/impurityModel/ed/dc_search.py
26
94.3
0.41% src/impurityModel/ed/manybody_basis.py
17
95.77
2.15% src/impurityModel/ed/eigensolvers.py
14
90.13
0.09% src/impurityModel/ed/gs_report.py
13
95.77
0.02% src/impurityModel/ed/gf_solvers.py
11
97.33
0.12% src/impurityModel/ed/gf_primitives.py
10
92.31
-1.63% src/impurityModel/ed/dc_record.py
9
96.86
-1.15% src/impurityModel/ed/groundstate.py
8
98.51
0.22% src/impurityModel/ed/cipsi_solver.py
8
97.66
0.15% src/impurityModel/ed/gf_units.py
8
88.85
0.66% src/impurityModel/ed/spectra.py
6
98.57
0.05% src/impurityModel/ed/greens_function.py
4
97.42
-0.39% src/impurityModel/ed/hartree_fock.py
3
96.47
1.35% src/impurityModel/ed/basis_transcription.py
3
96.63
6.51% src/impurityModel/ed/gf_engine.py
2
98.73
-0.59% src/impurityModel/ed/basis_split.py
1
98.98
0.1% src/impurityModel/ed/config.py
1
96.86
0.0% src/impurityModel/ed/observables.py
1
99.42
0.0% src/impurityModel/ed/selfenergy.py
1
97.72
0.09% src/impurityModel/ed/symmetries.py
Jobs
ID Job ID Ran Files Coverage
1 40071905347.1 24 Oct 2026 07:39AM UTC 83
94.72
GitHub Action Run
Source Files on build 40071905347
  • Tree
  • List 83
  • Changed 38
  • Source Changed 38
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40071905347
  • f5ee7cd6 on github
  • Prev Build on master (#38922753214)
  • Next Build on master (#43039006152)
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