Skip to main content

Numpydoclint is a linter for Numpy style docstrings.

Project description

Numpydoclint

Numpydoclint is a linter for Numpy style docstrings.

$ numpydoclint -vv asgard midgard/thor.py
asgard/loki.py:12 in function loki.mischief:
    GL03 Double line break found
asgard/odin.py:10 in type asgard.odin.Allfather:
    SA04 Missing description for See Also 'Yggdrasil' reference
midgard/thor.py:20 in function thor.Thor.strike:
    PR01 Parameters {'mjolnir'} not documented
Errors found in 3 out of 9 objects checked.

Numpydoclint uses static file analysis to identify code objects and then uses the numpydoc.validate module for validation, outputting corresponding error codes along with explanatory comments.

Installation

You can install Numpydoclint via the PIP package manager:

$ pip install numpydoc-linter

Alternatively, if you wish to install from the source code, follow these steps. Clone the repository and use Poetry to manage the project dependencies specified in pyproject.toml:

$ git clone https://github.com/nickuzmenkov/numpydoclint.git
$ cd numpydoclint
$ poetry install

Usage

Basic usage examples, as well as more advanced usage scenarios are covered in detail in the Official Documentation.

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

numpydoc_linter-0.2.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

numpydoc_linter-0.2.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file numpydoc_linter-0.2.0.tar.gz.

File metadata

  • Download URL: numpydoc_linter-0.2.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

File hashes

Hashes for numpydoc_linter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 25738af254761b28e65a488c4b8e44fc093a1d9c20d972a9927b194132f77b78
MD5 f69c38160f0329fe210ab04d6e8a9f65
BLAKE2b-256 fafc9e2f0a3058a308b7d1428a94a9201049e9fb7538685d10093a490fa9cba3

See more details on using hashes here.

File details

Details for the file numpydoc_linter-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: numpydoc_linter-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

File hashes

Hashes for numpydoc_linter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0389ef1c1c4226e50c9629b2153e2c57f31545735af1cf6cd3b03db0fce900d
MD5 6edc0eb0f0da249e2a5a3a706fd7ec57
BLAKE2b-256 4c33f98ea1ab23858d4a4cd2891a4d25bc5f2d78516d0f515ab4bdfd8a868002

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