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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file numdoclinter-0.1.0.tar.gz.

File metadata

  • Download URL: numdoclinter-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for numdoclinter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6eb16c6da2e6374e4fbfd59da0ce7ac9fe4209a5a4875f1588c04c646120b72
MD5 f274c590fcc8a76c455311aface034f8
BLAKE2b-256 7b168ccd3b8bd9911adca0a11e821b76fe920d4b3fbe74d285c39f676cd84750

See more details on using hashes here.

File details

Details for the file numdoclinter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: numdoclinter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for numdoclinter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 761c1c77585560b265925d9566360785111fe13b466996976bd6c34c3f8ba26c
MD5 a5c0f863d700030cb1aefcdc857582d6
BLAKE2b-256 75c61bb3e3c81283a282160b398036ee3d6f711c81ea5bca90c8f9e6f23ebff2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page