Skip to main content

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:

  1. recurse through folders to parse modules and list functions,
  2. parse function signatures and type annotations,
  3. parse function docstrings,
  4. 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


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)

Uploaded Source

Built Distribution

numdoclinter-0.1.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

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