Check for stylistic and formal issues in .rst and .py files included in the documentation.
Project description
Sphinx Lint
Sphinx Lint is based on rstlint.py from cpython.
What sphinx-lint is, what it is not?
sphinx-lint
should:
- be reasonably fast so it's comfortable to use as a linter in your editor.
- be usable on a single file.
- not give any false positive (probably an utopy, but let's try).
- not spend too much efforts finding errors that sphinx-build already find (or can easily find).
- focus on finding errors that are not visible to sphinx-build.
Known issues
Currently sphinx-lint can't work with tables, there's no understanding of how linesplit work in tables, like:
+-----------------------------------------+-----------------------------+---------------+
| Method | Checks that | New in |
+=========================================+=============================+===============+
| :meth:`assertEqual(a, b) | ``a == b`` | |
| <TestCase.assertEqual>` | | |
+-----------------------------------------+-----------------------------+---------------+
as sphinx-lint works line by line it will inevitably think the :meth: role is not closed properly.
To avoid false positives, some rules are skipped if we're in a table.
License
As this script was in the cpython repository the license is the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2, see LICENSE file for a full version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-lint-0.1.tar.gz
.
File metadata
- Download URL: sphinx-lint-0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6accb8cad7a5876a23c7b31fb4180b1e790654d357a7ea9ed374cc2da21bfeb6 |
|
MD5 | ace4528bb5d6fb4d83fd8d0037cecad3 |
|
BLAKE2b-256 | f1d600cf2b403a9c500746658074c6876bb55262d4865a03e6c624dc94d7b2fd |
Provenance
File details
Details for the file sphinx_lint-0.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_lint-0.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53647a6c555f3b824db69a3c8b10e08a39989ceefaa95e8734869e8a0a4fd13 |
|
MD5 | 3793e2e2f3af695f95e025cf1c19754e |
|
BLAKE2b-256 | 196c11570cf9cae9d73c3d77f23f231fe32466e251fb2c970d6b2b316cecad04 |