sphinx-lint
sphinx-lint copied to clipboard
Use Sphinx config to discover directives
trafficstars
An idea of @Jean-Abou-Samra, see: https://github.com/sphinx-doc/sphinx/issues/10143#issuecomment-1025134708
I like the idea: it should lead to less false positives, which is very important. It could even help spot typos in directive names!
As long as it's still fast to check a single file, so it can be used as a linter in an editor, I don't want rstlint to become slower than make suspicious from cpython, on my machine, for a full cpython/Doc/ check:
sphinx-linttakes 5.7smake suspicioustakes from 36s to 1m22s (depends on the cache)
Not sure if I'll have the time soon, but I'm basically interested in working on this.