Skip to main content

Checks code blocks in reStructuredText.

Project description

Build status

Checks code blocks in reStructuredText.

This is in addition to the usual docutils reStructuredText syntax check itself.

Installation

From pip:

$ pip install --upgrade rstcheck

Supported languages in code blocks

  • Bash

  • C (C99)

  • C++ (C++11)

  • JSON

  • Python

  • reStructuredText

Example

With bad Python syntax:

====
Test
====

.. code-block:: python

    print(
$ rstcheck bad_python.rst
bad_python.rst:7: (ERROR/3) (python) unexpected EOF while parsing

With bad C++ syntax:

====
Test
====

.. code-block:: cpp

    int main()
    {
        return x;
    }
$ rstcheck bad_cpp.rst
bad_cpp.rst:9: (ERROR/3) (cpp) error: 'x' was not declared in this scope

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rstcheck-0.4.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file rstcheck-0.4.tar.gz.

File metadata

  • Download URL: rstcheck-0.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rstcheck-0.4.tar.gz
Algorithm Hash digest
SHA256 3fd2bcad4fc621f0c621bc65c498785f4ddfe9b7cc8a0e0cac26b0ec8c059c87
MD5 b3d1955a4591f5f46e4bf93ef3ec5819
BLAKE2b-256 91e91d0f2a6a16c978f87e030c9489615d988563366973ee8c73e6292fecf071

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page