Add sphinx-lint session to noxfile - #1800
Conversation
|
Thanks for your contribution! But probably it will be sufficient to add sphinx-lint to CI (#1786)? |
I like both solutions. The important bit is the ability to invoke it locally. @rffontenelle WDYT? Should we go for the other PR? |
|
I'm fine with it. Although I wonder if it uses problem-matcher annotations and if not if it would feasible. Personally I find annotations very handy on GitHub Actions run log |
|
@rffontenelle @webknjaz I was clearing out the approved-but-not-merged PRs, and noticed this one was still lingering, but now with conflicts. Should we just close it, or is it worth resurrecting? |
71d1dd6 to
3306e5b
Compare
webknjaz
left a comment
There was a problem hiding this comment.
@ncoghlan I seem to recall a similar/related PR by @hugovk but don't remember the context anymore. We should merge this provided https://docs.zizmor.sh/audits/#template-injection is addressed.
|
@rffontenelle could you look into rebasing plz? |
for more information, see https://pre-commit.ci
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
3306e5b to
94791be
Compare
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
|
looks like we need to include some RST fixes now... |
horizontal-tab and unbalanced-inline-literals-delimiters
| filesystem entries as specified below: | ||
|
|
||
| - Alphanumeric characters, spaces (`` ``), underscores (``_``), hyphens (``-``), | ||
| - Alphanumeric characters, spaces (:literal:`\ `), underscores (``_``), hyphens (``-``), |
There was a problem hiding this comment.
In order the solve an issue in a literal space in https://packaging.python.org/en/latest/specifications/glob-patterns/#valid-glob-patterns, I had to add a single-backtick role. However rst-backticks pre-commit didn't like it.
There was a problem hiding this comment.
underscores shows the same problem 🤔
See #1166
This runs sphinx-lint in the docs together with HTML build and linkcheck. It accepts one or more path as positional argument, so e.g. one may specify the path of a translation file instead of using the source reST files from "source" directory.
I was going to add sphinx-lint package to requirements.txt and pip-install from that file, but this unnecessarily added dependencies and increased install time.
Running without posargs:
Running with a posargs as the filepath "messages.po", the Brazilian Portuguese translation obtained from
translation/sourcebranch:📚 Documentation preview 📚: https://python-packaging-user-guide--1800.org.readthedocs.build/en/1800/