-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Add a CI lint task to check st2client's README.md #5191
Comments
One option would also be to move it to .rst format (same as changelog) and just run rstcheck on it (we already run it on CHANGELOG.rst). So perhaps not a bad thing from consistnecy perspective and you could argue rst is also more "native" for Python (our docs are also in rst, etc.) :) |
We could do that, but the
|
Yeah, that works. And sorry, I was also talking about top level project README.md (and not just the client one) which currently uses Markdown. |
Gotcha. I think we originally intended to make the st2* directories all their own packages to the point that we could release them all individually on PyPI. If that was our intent, then we should include better descriptions than we currently do, and part of that can be copying the base README text. If we do that, then we should still at least use |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically marking is as stale. If this issue is not relevant or applicable anymore (problem has been fixed in a new version or similar), please close the issue or let us know so we can close it. On the contrary, if the issue is still relevant, there is nothing you need to do, but if you have any additional details or context which would help us when working on this issue, please include it as a comment to this issue. |
At moment we have README.rst in place, but even running the commands suggested, I found that the readme renderer still passed.
|
I can start looking at this, as familiar given problem happened in middle of last release process. |
Interestingly when add to Makefile, python3 setup.py check -r - accepts README.rst with sourcecode with unknown lexer, but python2 setup.py check -r -> will find error. |
rst-lint however finds the error, so will use that as well as readme-renderer |
We need to make sure that the st2client
README.rst
file is acceptable to PyPI, since any syntax errors in it will cause thepush_st2client
task of thest2cd.st2_finalize_release
workflow to fail.We can check the syntax using the same renderer that PyPI itself uses:
It would be nice if we could catch these errors before release, which means that we should create a step in our CI tooling to check it before any bad changes get merged.
The text was updated successfully, but these errors were encountered: