Skip to content

Fix some formatting details#41422

Merged
vbraun merged 2 commits intosagemath:developfrom
user202729:format-tests
Feb 1, 2026
Merged

Fix some formatting details#41422
vbraun merged 2 commits intosagemath:developfrom
user202729:format-tests

Conversation

@user202729
Copy link
Copy Markdown
Contributor

@user202729 user202729 commented Jan 9, 2026

  • The regex that checks for tests block did not work properly in some of the cases below. (If you see the documentation changes, you'll see that the tests correctly disappear, however it was pointed out some time earlier that this is unintentional and the TESTS:: ought to appear in developer's preview, just not in user-visible documentation.)
  • Some of the lines get indented by a number of spaces ≡ 1 (mod 4), which is inconsistent with the rest of the code base.
  • minor polish of some details in Fix scalar multiplication for zero-size GF(2^e) matrices #41403. If you look at __cinit__ of Matrix_gf2e_dense and its parent classes, you'll see that the additional arguments are not used.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

#41403

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 9, 2026

Documentation preview for this PR (built with commit 2edc807; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

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

good, thanks a lot

vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 30, 2026
sagemathgh-41422: Fix some formatting details
    
- The regex that checks for tests block did not work properly in some of
the cases below. (If you see the documentation changes, you'll see that
the tests correctly disappear, **however** it was pointed out some time
earlier that this is unintentional and the `TESTS::` ought to appear in
developer's preview, just not in user-visible documentation.)
- Some of the lines get indented by a number of spaces ≡ 1 (mod 4),
which is inconsistent with the rest of the code base.
- minor polish of some details in
sagemath#41403. If you look at `__cinit__`
of `Matrix_gf2e_dense` and its parent classes, you'll see that the
additional arguments are not used.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->


sagemath#41403
    
URL: sagemath#41422
Reported by: user202729
Reviewer(s): Frédéric Chapoton
@vbraun vbraun merged commit e795c97 into sagemath:develop Feb 1, 2026
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants