Name | rstcheck JSON |
Version |
6.2.4
JSON |
| download |
home_page | None |
Summary | Checks syntax of reStructuredText and code blocks nested within it |
upload_time | 2024-07-07 16:16:57 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT |
keywords |
restructuredtext
rst
linter
static-analysis
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
========
rstcheck
========
+-------------------+---------------------------------------------------------------------------------------------+
| **General** | |maintenance_y| |license| |semver| |
| +---------------------------------------------------------------------------------------------+
| | |rtd| |
+-------------------+---------------------------------------------------------------------------------------------+
| **CI** | |gha_tests| |gha_docu| |gha_qa| |pre_commit_ci| |
+-------------------+---------------------------------------------------------------------------------------------+
| **PyPI** | |pypi_release| |pypi_py_versions| |pypi_implementations| |
| +---------------------------------------------------------------------------------------------+
| | |pypi_format| |pypi_downloads| |
+-------------------+---------------------------------------------------------------------------------------------+
| **Github** | |gh_tag| |gh_last_commit| |
| +---------------------------------------------------------------------------------------------+
| | |gh_stars| |gh_forks| |gh_contributors| |gh_watchers| |
+-------------------+---------------------------------------------------------------------------------------------+
Checks syntax of reStructuredText and code blocks nested within it.
See the full documentation at `read-the-docs`_
.. contents::
Installation
============
From pip
.. code:: shell
$ 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
========
.. rstcheck: ignore-languages=cpp,python,rst
With bad Python syntax:
.. code:: rst
====
Test
====
.. code:: python
print(
.. code:: text
$ rstcheck bad_python.rst
bad_python.rst:7: (ERROR/3) (python) unexpected EOF while parsing
With bad C++ syntax:
.. code:: rst
====
Test
====
.. code:: cpp
int main()
{
return x;
}
.. code:: text
$ 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:
.. code:: rst
====
Test
===
.. code:: text
$ rstcheck bad_rst.rst
bad_rst.rst:1: (SEVERE/4) Title overline & underline mismatch.
.. _read-the-docs: https://rstcheck.readthedocs.io
.. General
.. |maintenance_n| image:: https://img.shields.io/badge/Maintenance%20Intended-✖-red.svg?style=flat-square
:target: http://unmaintained.tech/
:alt: Maintenance - not intended
.. |maintenance_y| image:: https://img.shields.io/badge/Maintenance%20Intended-✔-green.svg?style=flat-square
:target: http://unmaintained.tech/
:alt: Maintenance - intended
.. |license| image:: https://img.shields.io/github/license/rstcheck/rstcheck.svg?style=flat-square&label=License
:target: https://github.com/rstcheck/rstcheck/blob/main/LICENSE
:alt: License
.. |semver| image:: https://img.shields.io/badge/Semantic%20Versioning-2.0.0-brightgreen.svg?style=flat-square
:target: https://semver.org/
:alt: Semantic Versioning - 2.0.0
.. |rtd| image:: https://img.shields.io/readthedocs/rstcheck/latest.svg?style=flat-square&logo=read-the-docs&logoColor=white&label=Read%20the%20Docs
:target: https://rstcheck.readthedocs.io/en/latest/
:alt: Read the Docs - Build Status (latest)
.. CI
.. |gha_tests| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/test.yml?branch=main&style=flat-square&logo=github&label=Test%20code
:target: https://github.com/rstcheck/rstcheck/actions/workflows/test.yaml
:alt: Test status
.. |gha_docu| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/documentation.yml?branch=main&style=flat-square&logo=github&label=Test%20documentation
:target: https://github.com/rstcheck/rstcheck/actions/workflows/documentation.yaml
:alt: Documentation status
.. |gha_qa| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/qa.yml?branch=main&style=flat-square&logo=github&label=QA
:target: https://github.com/rstcheck/rstcheck/actions/workflows/qa.yaml
:alt: QA status
.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/rstcheck/rstcheck/main.svg
:target: https://results.pre-commit.ci/latest/github/rstcheck/rstcheck/main
:alt: pre-commit status
.. PyPI
.. |pypi_release| image:: https://img.shields.io/pypi/v/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072
:target: https://pypi.org/project/rstcheck/
:alt: PyPI - Package latest release
.. |pypi_py_versions| image:: https://img.shields.io/pypi/pyversions/rstcheck.svg?style=flat-square&logo=python&logoColor=FBE072
:target: https://pypi.org/project/rstcheck/
:alt: PyPI - Supported Python Versions
.. |pypi_implementations| image:: https://img.shields.io/pypi/implementation/rstcheck.svg?style=flat-square&logo=python&logoColor=FBE072
:target: https://pypi.org/project/rstcheck/
:alt: PyPI - Supported Implementations
.. |pypi_format| image:: https://img.shields.io/pypi/format/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072
:target: https://pypi.org/project/rstcheck/
:alt: PyPI - Format
.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072
:target: https://pypi.org/project/rstcheck/
:alt: PyPI - Monthly downloads
.. GitHub
.. |gh_tag| image:: https://img.shields.io/github/v/tag/rstcheck/rstcheck.svg?sort=semver&style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/tags
:alt: Github - Latest Release
.. |gh_last_commit| image:: https://img.shields.io/github/last-commit/rstcheck/rstcheck.svg?style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/commits/main
:alt: GitHub - Last Commit
.. |gh_stars| image:: https://img.shields.io/github/stars/rstcheck/rstcheck.svg?style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/stargazers
:alt: Github - Stars
.. |gh_forks| image:: https://img.shields.io/github/forks/rstcheck/rstcheck.svg?style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/network/members
:alt: Github - Forks
.. |gh_contributors| image:: https://img.shields.io/github/contributors/rstcheck/rstcheck.svg?style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/graphs/contributors
:alt: Github - Contributors
.. |gh_watchers| image:: https://img.shields.io/github/watchers/rstcheck/rstcheck.svg?style=flat-square&logo=github
:target: https://github.com/rstcheck/rstcheck/watchers/
:alt: Github - Watchers
Raw data
{
"_id": null,
"home_page": null,
"name": "rstcheck",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Christian Riedel <cielquan@protonmail.com>",
"keywords": "restructuredtext, rst, linter, static-analysis",
"author": null,
"author_email": "Steven Myint <git@stevenmyint.com>",
"download_url": "https://files.pythonhosted.org/packages/13/fe/000cc83279123cf21f68d28b8bcd76849acf8e2a9bb75cc834d4a3212a33/rstcheck-6.2.4.tar.gz",
"platform": null,
"description": "========\nrstcheck\n========\n\n+-------------------+---------------------------------------------------------------------------------------------+\n| **General** | |maintenance_y| |license| |semver| |\n| +---------------------------------------------------------------------------------------------+\n| | |rtd| |\n+-------------------+---------------------------------------------------------------------------------------------+\n| **CI** | |gha_tests| |gha_docu| |gha_qa| |pre_commit_ci| |\n+-------------------+---------------------------------------------------------------------------------------------+\n| **PyPI** | |pypi_release| |pypi_py_versions| |pypi_implementations| |\n| +---------------------------------------------------------------------------------------------+\n| | |pypi_format| |pypi_downloads| |\n+-------------------+---------------------------------------------------------------------------------------------+\n| **Github** | |gh_tag| |gh_last_commit| |\n| +---------------------------------------------------------------------------------------------+\n| | |gh_stars| |gh_forks| |gh_contributors| |gh_watchers| |\n+-------------------+---------------------------------------------------------------------------------------------+\n\n\nChecks syntax of reStructuredText and code blocks nested within it.\n\nSee the full documentation at `read-the-docs`_\n\n\n.. contents::\n\n\nInstallation\n============\n\nFrom pip\n\n.. code:: shell\n\n $ pip install rstcheck\n\nTo use pyproject.toml for configuration::\n\n $ pip install rstcheck[toml]\n\nTo add sphinx support::\n\n $ pip install rstcheck[sphinx]\n\n\nSupported languages in code blocks\n==================================\n\n- Bash\n- Doctest\n- C (C99)\n- C++ (C++11)\n- JSON\n- XML\n- Python\n- reStructuredText\n\n\nExamples\n========\n\n.. rstcheck: ignore-languages=cpp,python,rst\n\nWith bad Python syntax:\n\n.. code:: rst\n\n ====\n Test\n ====\n\n .. code:: python\n\n print(\n\n.. code:: text\n\n $ rstcheck bad_python.rst\n bad_python.rst:7: (ERROR/3) (python) unexpected EOF while parsing\n\nWith bad C++ syntax:\n\n.. code:: rst\n\n ====\n Test\n ====\n\n .. code:: cpp\n\n int main()\n {\n return x;\n }\n\n.. code:: text\n\n $ rstcheck bad_cpp.rst\n bad_cpp.rst:9: (ERROR/3) (cpp) error: 'x' was not declared in this scope\n\nWith bad syntax in the reStructuredText document itself:\n\n.. code:: rst\n\n ====\n Test\n ===\n\n.. code:: text\n\n $ rstcheck bad_rst.rst\n bad_rst.rst:1: (SEVERE/4) Title overline & underline mismatch.\n\n\n.. _read-the-docs: https://rstcheck.readthedocs.io\n\n\n.. General\n\n.. |maintenance_n| image:: https://img.shields.io/badge/Maintenance%20Intended-\u2716-red.svg?style=flat-square\n :target: http://unmaintained.tech/\n :alt: Maintenance - not intended\n\n.. |maintenance_y| image:: https://img.shields.io/badge/Maintenance%20Intended-\u2714-green.svg?style=flat-square\n :target: http://unmaintained.tech/\n :alt: Maintenance - intended\n\n.. |license| image:: https://img.shields.io/github/license/rstcheck/rstcheck.svg?style=flat-square&label=License\n :target: https://github.com/rstcheck/rstcheck/blob/main/LICENSE\n :alt: License\n\n.. |semver| image:: https://img.shields.io/badge/Semantic%20Versioning-2.0.0-brightgreen.svg?style=flat-square\n :target: https://semver.org/\n :alt: Semantic Versioning - 2.0.0\n\n.. |rtd| image:: https://img.shields.io/readthedocs/rstcheck/latest.svg?style=flat-square&logo=read-the-docs&logoColor=white&label=Read%20the%20Docs\n :target: https://rstcheck.readthedocs.io/en/latest/\n :alt: Read the Docs - Build Status (latest)\n\n\n.. CI\n\n.. |gha_tests| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/test.yml?branch=main&style=flat-square&logo=github&label=Test%20code\n :target: https://github.com/rstcheck/rstcheck/actions/workflows/test.yaml\n :alt: Test status\n\n.. |gha_docu| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/documentation.yml?branch=main&style=flat-square&logo=github&label=Test%20documentation\n :target: https://github.com/rstcheck/rstcheck/actions/workflows/documentation.yaml\n :alt: Documentation status\n\n.. |gha_qa| image:: https://img.shields.io/github/actions/workflow/status/rstcheck/rstcheck/qa.yml?branch=main&style=flat-square&logo=github&label=QA\n :target: https://github.com/rstcheck/rstcheck/actions/workflows/qa.yaml\n :alt: QA status\n\n.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/rstcheck/rstcheck/main.svg\n :target: https://results.pre-commit.ci/latest/github/rstcheck/rstcheck/main\n :alt: pre-commit status\n\n\n.. PyPI\n\n.. |pypi_release| image:: https://img.shields.io/pypi/v/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072\n :target: https://pypi.org/project/rstcheck/\n :alt: PyPI - Package latest release\n\n.. |pypi_py_versions| image:: https://img.shields.io/pypi/pyversions/rstcheck.svg?style=flat-square&logo=python&logoColor=FBE072\n :target: https://pypi.org/project/rstcheck/\n :alt: PyPI - Supported Python Versions\n\n.. |pypi_implementations| image:: https://img.shields.io/pypi/implementation/rstcheck.svg?style=flat-square&logo=python&logoColor=FBE072\n :target: https://pypi.org/project/rstcheck/\n :alt: PyPI - Supported Implementations\n\n.. |pypi_format| image:: https://img.shields.io/pypi/format/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072\n :target: https://pypi.org/project/rstcheck/\n :alt: PyPI - Format\n\n.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/rstcheck.svg?style=flat-square&logo=pypi&logoColor=FBE072\n :target: https://pypi.org/project/rstcheck/\n :alt: PyPI - Monthly downloads\n\n\n\n.. GitHub\n\n.. |gh_tag| image:: https://img.shields.io/github/v/tag/rstcheck/rstcheck.svg?sort=semver&style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/tags\n :alt: Github - Latest Release\n\n.. |gh_last_commit| image:: https://img.shields.io/github/last-commit/rstcheck/rstcheck.svg?style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/commits/main\n :alt: GitHub - Last Commit\n\n.. |gh_stars| image:: https://img.shields.io/github/stars/rstcheck/rstcheck.svg?style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/stargazers\n :alt: Github - Stars\n\n.. |gh_forks| image:: https://img.shields.io/github/forks/rstcheck/rstcheck.svg?style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/network/members\n :alt: Github - Forks\n\n.. |gh_contributors| image:: https://img.shields.io/github/contributors/rstcheck/rstcheck.svg?style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/graphs/contributors\n :alt: Github - Contributors\n\n.. |gh_watchers| image:: https://img.shields.io/github/watchers/rstcheck/rstcheck.svg?style=flat-square&logo=github\n :target: https://github.com/rstcheck/rstcheck/watchers/\n :alt: Github - Watchers\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Checks syntax of reStructuredText and code blocks nested within it",
"version": "6.2.4",
"project_urls": {
"Changelog": "https://github.com/rstcheck/rstcheck/blob/main/CHANGELOG.md",
"Documentation": "https://rstcheck.readthedocs.io/en/latest/",
"Repository": "https://github.com/rstcheck/rstcheck"
},
"split_keywords": [
"restructuredtext",
" rst",
" linter",
" static-analysis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9549e55ba65b9e805cc97a1115ba51bbec346013814b6d6ded216bb4e97cf3a1",
"md5": "37b2954bafb8672b6551eeada2fadc72",
"sha256": "23de2575ba0af1adcddea87a20d69187f0fb9dd8270f59eb98d63461c95375a7"
},
"downloads": -1,
"filename": "rstcheck-6.2.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "37b2954bafb8672b6551eeada2fadc72",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8533,
"upload_time": "2024-07-07T16:16:55",
"upload_time_iso_8601": "2024-07-07T16:16:55.386525Z",
"url": "https://files.pythonhosted.org/packages/95/49/e55ba65b9e805cc97a1115ba51bbec346013814b6d6ded216bb4e97cf3a1/rstcheck-6.2.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "13fe000cc83279123cf21f68d28b8bcd76849acf8e2a9bb75cc834d4a3212a33",
"md5": "701de886689f39903c79c4ebfcfe26f8",
"sha256": "384942563dfbfcc85903a587ecf050447217c46b51e266ed3fe51371bc599015"
},
"downloads": -1,
"filename": "rstcheck-6.2.4.tar.gz",
"has_sig": false,
"md5_digest": "701de886689f39903c79c4ebfcfe26f8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 24520,
"upload_time": "2024-07-07T16:16:57",
"upload_time_iso_8601": "2024-07-07T16:16:57.885407Z",
"url": "https://files.pythonhosted.org/packages/13/fe/000cc83279123cf21f68d28b8bcd76849acf8e2a9bb75cc834d4a3212a33/rstcheck-6.2.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-07 16:16:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rstcheck",
"github_project": "rstcheck",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "rstcheck"
}