-
Notifications
You must be signed in to change notification settings - Fork 624
[WIP] Unpin rstcheck dependency and update to version 6.x #2344
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
Conversation
The following files are automatically generated and should not be modified outside of the Ansible release process:
Please double-check your changes. |
Hi @oraNod , While I’ve resolved the majority of syntax and parsing errors, the AttributeError issue still persists. This seems to be caused by an existing bug in the rstcheck_core library. Below is the error message for reference:
Would it be acceptable to ignore this issue given its root cause in the library? I appreciate your guidance on how to proceed. |
@ganeshhubale Hi, I've looked through the errors in your branch. It seems there are some more instances of the missing language in code blocks triggering that error. For example, However it also looks like there are some cases of this bug showing up: rstcheck/rstcheck-core#63 I've observed this with the Have you been able to successfully ignore this? I've attempted via
|
@oraNod yes, I agree with you. about this issue - rstcheck/rstcheck-core#63 - Can we open this?
code block:
Please help me with next steps. Thanks! |
@ganeshhubale Thanks for keeping going with this! That looks promising. I guess it's a bit weird though because info seems to be the default level according to the docs. I also don't particularly like the idea of adding an rstcheck cfg file to the repo anyway to avoid clutter. I did try to add a section to the project toml but it didn't appear to have an effect. Anyway... Thinking about next steps:
|
@oraNod You can push to this branch. As I am not getting what I can update to these files? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are quite a few changes of yaml
to ini
. This is wrong in most cases. It usually should be yaml
or yaml+jinja
(depending on whether strings are templated).
Since we call rstcheck from a script, we could simply enumerate all files that we want to be checked and ask rstcheck to only check these. |
Excellent suggestion @felixfontein cheers |
@ganeshhubale I pushed a commit with a few more language specifiers for code-blocks. It appears that I'll try to take a more detailed look at this tomorrow or early next week. Thanks again for working on this. |
docs/docsite/rst/network/user_guide/network_debug_troubleshooting.rst
Outdated
Show resolved
Hide resolved
docs/docsite/rst/network/user_guide/network_debug_troubleshooting.rst
Outdated
Show resolved
Hide resolved
docs/docsite/rst/network/user_guide/network_debug_troubleshooting.rst
Outdated
Show resolved
Hide resolved
docs/docsite/rst/network/user_guide/network_debug_troubleshooting.rst
Outdated
Show resolved
Hide resolved
tests/requirements.txt
Outdated
@@ -121,7 +121,7 @@ requests==2.32.3 | |||
# via sphinx | |||
resolvelib==1.0.1 | |||
# via -r tests/requirements-relaxed.in | |||
rstcheck==5.0.0 | |||
rstcheck>=6.2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change the generated file by hand. This must be pinned with the integrated tooling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you for your reviews.
I have updated using nox in new PR - #2383
Thank you @oraNod |
@ganeshhubale Hey, it seems like this PR has got a bit unwieldy. I've separated out the changes to add the language attribute to codeblocks in a new PR. Can you drop those commits from this PR to leave only the changes to the rstcheck script? It might even be worth cherry picking the rstcheck script changes to a new branch and opening a fresh PR. Final thing, and my bad for not pointing this out from the beginning, but as @webknjaz mentioned we have tooling in place to update the lock files so things like Give us a shout if you have any questions or need a hand with this. Thanks again for all the work you've put into this so far. |
Just FYI, the generated porting guides are now excluded from rstcheck. I had to implement that yesterday in #2376 to get the Ansible 11.2.0 release out. |
- Updated the rstcheck.py script to handle changes in the rstcheck-core API and output format. Signed-off-by: Ganesh Hubale <ganeshhubale03@gmail.com>
- Corrected YAML formatting issues, ensuring valid syntax for rstcheck validation. - Fixed malformed tables by aligning columns and ensuring consistent formatting. - Addressed unreferenced and duplicate hyperlink targets, ensuring proper references or removal of unused targets. - Adjusted invalid code block types (e.g., switching from yaml to ini or text) for compatibility with rstcheck. - Resolved custom role (ansplugin) issues by either ignoring the role. Signed-off-by: Ganesh Hubale <ganeshhubale03@gmail.com>
4818bf2
to
69732e8
Compare
@oraNod As you mentioned, I have moved required changes in rstcheck.py file to new PR - #2383 Please let me know if any changes needed. Thanks for your support. 👍 |
@ganeshhubale Thanks for keeping this contribution going! I'll close this PR now in favour of #2383 |
Issue resolved: #1710