rstcheck 6.0.0
pip install rstcheck==6.0.0
Newer version available (6.2.4)
Released:
Checks syntax of reStructuredText and code blocks nested within it
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Steven Myint
- Maintainer: Christian Riedel
- Tags restructuredtext, rst, linter, static-analysis
- Requires: Python >=3.7, <4.0
Classifiers
- License
- Programming Language
- Topic
Project description
General |
|
CI |
|
PyPI |
|
Github |
|
Checks syntax of reStructuredText and code blocks nested within it.
See the full documentation at read-the-docs
Installation
From pip
$ pip install rstcheck
To use pyproject.toml for configuration:
$ pip install rstcheck[toml]
To add sphinx support:
$ pip install rstcheck[sphinx]
Supported languages in code blocks
Bash
Doctest
C (C99)
C++ (C++11)
JSON
XML
Python
reStructuredText
Examples
With bad Python syntax:
====
Test
====
.. code:: python
print(
$ rstcheck bad_python.rst
bad_python.rst:7: (ERROR/3) (python) unexpected EOF while parsing
With bad C++ syntax:
====
Test
====
.. code:: cpp
int main()
{
return x;
}
$ rstcheck bad_cpp.rst
bad_cpp.rst:9: (ERROR/3) (cpp) error: 'x' was not declared in this scope
With bad syntax in the reStructuredText document itself:
====
Test
===
$ rstcheck bad_rst.rst
bad_rst.rst:1: (SEVERE/4) Title overline & underline mismatch.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Steven Myint
- Maintainer: Christian Riedel
- Tags restructuredtext, rst, linter, static-analysis
- Requires: Python >=3.7, <4.0
Classifiers
- License
- Programming Language
- Topic
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 rstcheck-6.0.0.tar.gz
.
File metadata
- Download URL: rstcheck-6.0.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3536f87b02aee4c945d0fbcf4a2a3458341d95afc8e22fc2898bb897bbc2f5f6 |
|
MD5 | 0f58ccb169a1bedc764fd8329a658278 |
|
BLAKE2b-256 | 9fe9f002143cbdf490f0ac95715fccededfe182c76ff8ab956ff318f0c4699e0 |
File details
Details for the file rstcheck-6.0.0-py3-none-any.whl
.
File metadata
- Download URL: rstcheck-6.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 144e6fb24042f1e4b0bb875a2238deddf7536894570ba4ac1abdd52b86980b2f |
|
MD5 | 7796a8e62fadee0d556c11754c2152b2 |
|
BLAKE2b-256 | e303fdd291877d9d380556cf83df0b8025e47bbe12e1a1f11023673a0907f87d |