-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix docstrings in sage/coding/linear_rank_metric.py #30230
Comments
comment:1
A few typo corrections in addition to adding raw string markers. It's not clear why the failure now appears since the code in |
Branch: u/strogdon/pdfdocs |
comment:2
Can you push? |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits: |
comment:4
had to change my public key but that which was pushed is not correct. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
I think we're there now. |
comment:7
That's one more typo than I had spotted. We should wait for the approval of Samuel Lelievre before going to positive review. |
Author: Steven Trogdon |
comment:8
I did notice that there was one more string that needed to be a raw string, but I don't believe it impacted anything. |
comment:9
I think sage doc in general needs more raw strings but this is not my decision. |
comment:10
Thanks for fixing this. I consider all docstrings should be raw! While we're at it would you
Or you can leave that for a different ticket and set to positive review on my behalf. There would also be a few docstring first lines to change:
|
Reviewer: Samuel Lelièvre |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Let's see if I got everything. Feel free to make any changes. |
comment:13
Since some doctests will be run for the first time (with the new If the bots are happy, positive review. |
comment:14
I changed the ticket title and description to reflect the scope creep. I note that some bots do fine but one has failed because of a lack of disk space. The bots which have run are happy enough so I move this to positive review which should lead to further bot testing. |
This comment has been minimized.
This comment has been minimized.
comment:16
I amended the ticket summary and description a bit more, hope that's ok: The happy patchbots still have pyflakes warnings about unused imports, |
comment:17
Merge conflict |
comment:18
Does any one know which other ticket is also touching |
comment:19
perhaps #30085 |
comment:20
Replying to @strogdon:
Well, it created the file as far as I see it. And was included in the latest beta. In other word, We are truly fixing something introduced in the latest beta. But may there is another ticket addressing some of the points we are looking in this ticket. |
comment:21
Replying to @kiwifb:
You're right. It was closed 3 days ago. I only looked at that. This then explains the pdf docs failing. |
comment:22
Maybe fixed by #21226 and commit sagemath/sagetrac-mirror@899d390. But why make beta unicode? I don't think that ticket fixed the raw string markers. |
comment:23
That looks like our culprit. Just been merged. The use of unicode in these case usually boils down to "because I can". I don't know how portable it is. And yes it doesn't fix the raw string markers, or the missing ":" or the various spelling/grammar mistakes. Just the use of |
comment:24
Wait 'til the next beta and then correct things? |
comment:25
That or merge the ticket in this one and mark it as depending on that ticket (just in case it gets unmerged). I don't have a preference either way. Sometimes a merge is complicated but this one is easily manageable I'd say. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:27
Let me know if I've messed things up. |
Dependencies: #21226 |
comment:28
Somehow you have lost the unicode beta. |
comment:29
The original branch here had |
comment:30
I don't understand what's going on - it seems as if the last commit of #21226 did not make it into the beta6. |
comment:31
Replying to @strogdon:
what's wrong with unicode beta? They're displayed quite well in 21st century setups. By the way, did you check that pdf docs build with your changes? I spent some time trying to fix that pdf failing problem without resorting to unicode, gave up and added unicode, which made them work. The reason it ever popped up is that something went wrong in the release process and the commit which fixed that issue didn't make it in. |
comment:32
Replying to @dimpase:
I suppose nothing is wrong with using a unicode beta. I'll let others decide as to whether unicode should be used when instead a raw string marker can be added with the usual
Yes, this was tested (see sage-on-gentoo github issue 593). And it was tested on vanilla Sage as well. Yes is was |
comment:33
Using unicode |
comment:34
9.2.beta7 is available now on github, let's rebase on that. |
comment:35
Volker is merging, let's not do anything until he reports. |
comment:36
It merged cleanly and the associated commit looks to be correct. |
Changed branch from u/strogdon/pdfdocs to |
We fix a few docstring issues in the file
sage/coding/linear_rank_metric.py
:""" ... """
->r""" ... """
beta
->\beta
;F_q{q^m}
->F_{q^m}
::
to introduce example blocks or test blocksAs reported in sage-on-gentoo github issue 593, the lack of raw strings caused errors when building the pdf docs when there were backslashes in LaTeX formulas:
Depends on #21226
CC: @strogdon @slel
Component: documentation
Author: Steven Trogdon
Branch/Commit:
e43b5c2
Reviewer: Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/30230
The text was updated successfully, but these errors were encountered: