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 asgard.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
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 numpydoc_linter-0.3.0.tar.gz
.
File metadata
- Download URL: numpydoc_linter-0.3.0.tar.gz
- Upload date:
- Size: 13.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 304e10e3f3634d5e88645dff8dcccd9c9d074a8e473775c84f0032fd3e6e60ad |
|
MD5 | b68a8cc9c43fc3ee2ded28e7cecf26fa |
|
BLAKE2b-256 | 062e10c1a04406d25d22d10ca1d6dec7b34ab8ef88f6f9687aeb7629f32215d2 |
File details
Details for the file numpydoc_linter-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: numpydoc_linter-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245f7ee551c01206d011bfb6750aaade5f18496f107fd5cc6c963de604f79097 |
|
MD5 | 0474463b3a0a7b102116fb595de0d9d9 |
|
BLAKE2b-256 | f1e666047e490940c6379bf08ce6fe4c1792874ce55599b2efbe80dc59b94e13 |