No project description provided
Project description
numdoclinter
Inspired by numdoclint
,
but wanting to try a slightly different approach...
Specifically, instead of trying to parse signatures and docstrings using
regex, numdoclinter
uses the abstract syntax tree built into Python's
standard library ast
package.
Basically, all we do is:
- recurse through folders to parse modules and list functions,
- parse function signatures and type annotations,
- parse function docstrings,
- check that the signature and docstring are consistent and contain everything required.
You can clone this repo and then pip install
it, and then you can run
numdoclinter
(or just ndlinter
) from your command line on whatever
folder you like.
git clone https://github.com/peterprescott/numdoclinter
cd numdoclinter
pip install .
ndlinter --help
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
numdoclinter-0.1.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for numdoclinter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 761c1c77585560b265925d9566360785111fe13b466996976bd6c34c3f8ba26c |
|
MD5 | a5c0f863d700030cb1aefcdc857582d6 |
|
BLAKE2b-256 | 75c61bb3e3c81283a282160b398036ee3d6f711c81ea5bca90c8f9e6f23ebff2 |