Skip to content

Fix lint-format failures on develop - #340

Open
markbujehein wants to merge 1 commit into
developfrom
fix-lint-format
Open

markbujehein wants to merge 1 commit into
developfrom
fix-lint-format

Conversation

@markbujehein

@markbujehein markbujehein commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

develop fails the lint-format workflow, so every branch made from it does too (e.g. #339). This has been a recurring issue for me (!), so I've had @claude track down what is going on:

Note, some of these can seemingly can pass pixi run fix/pixi run check, which is strange, but are caught by the Github workflow!

Also includes the pixi run fix docstring formatting of sampler.py and minimizer_bumps.py, and the pixi.lock platform renaming from the current pixi version (the lock file was also recently updated to the new format in diffraction-lib).

Upstream

copier update will probably reset the TOML files, so that part should also be fixed in templates; AFAIK, it's caused by the workflow and the prettier TOML not being synced up (do you know anything about this @AndrewSazonov?)

develop fails lint-format, so every branch made from it does too:

- ruff format: test_easy_list.py and test_new_base.py from #323 and
  #325 were merged unformatted.
- prettier: pixi.toml, prettierrc.toml and pyproject.toml are
  unchanged since the last green run (77d7967), but CI installs
  prettier and prettier-plugin-toml unpinned, so newer formatting
  rules now flag them.

Also applies "pixi run fix" docstring formatting to sampler.py and
minimizer_bumps.py, and the pixi.lock platform renaming from the
current pixi version, as done on other branches.
@markbujehein markbujehein added [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) [priority] lowest Very low urgency labels Oct 22, 2026
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.24%. Comparing base (511a8e4) to head (d461cc3).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #340   +/-   ##
========================================
  Coverage    83.24%   83.24%           
========================================
  Files           63       63           
  Lines         5324     5324           
========================================
  Hits          4432     4432           
  Misses         892      892           
Flag Coverage Δ
unittests 83.24% <ø> (ø)

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

Files with missing lines Coverage Δ
.../easyscience/fitting/minimizers/minimizer_bumps.py 99.27% <ø> (ø)
src/easyscience/fitting/sampler.py 100.00% <ø> (ø)

@damskii9992

Copy link
Copy Markdown
Contributor

This can't be merged yet. It misses the new keyword for aligning comments. We should make a new release of the templates, and then make a copier-update PR. That should fix the failing CI everywhere. Just waiting on @AndrewSazonov to look at my PR in templates and then make a release of it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] lowest Very low urgency [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants