Skip to main content

BD RD Docstring Checker

Usage

check_docstring PATH

where PATH can be a file or a directory. All Python scripts will be collected and checked.

Docstring Convention

Google style docstring ref1 ref2 ref3

def example_function(param1, param2):
    """
    This is an example of a function docstring.
    More descriptions go here.

    Args:
        param1 (int): The first parameter.
            Second line has to be indented.
        param2 (str): The second parameter.

    Returns:
        bool: True if successful, False otherwise.

    Raises:
        AttributeError: The ``Raises`` section is a list of all exceptions
            that are relevant to the interface.
        ValueError: If `param2` is equal to `param1`.
    """

    if param1 == param2:
        raise ValueError('param1 may not be equal to param2')
    return True

Last updated: 2021/11/19

Release files for check-docstring 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for check-docstring 1.0.1
File Size Uploaded
check-docstring-1.0.1.tar.gz 3.7 kB Details

Release files / check-docstring-1.0.1.tar.gz

Download URL check-docstring-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
395ad6cd6e11a4527aafc0289b0caacc4cf4cd6f1163c2164900a2fdcc25a21a
BLAKE2b-256 checksum
How to use checksums
a98ec0983e84d0baca65b84e6e609e2909d397c9cc12aa269a166d6a6c512828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.2.0 pkginfo/1.8.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page