Skip to main content

Set docstring style to 'auto' for external packages.

Project description

griffe-autodocstringstyle

ci documentation pypi version gitter

Set docstring style to 'auto' for external packages.

Installation

pip install griffe-autodocstringstyle

Usage

Enable the griffe_autodocstringstyle extension. Now all packages loaded from a virtual environment will have their docstrings parsed with the auto style (automatically guessing the docstring style).

Use the exclude option to pass package names that shouldn't be considered. This can be useful if you must first install your sources as a package before loading/documenting them (meaning they end up in the virtual environment too).

With MkDocs:

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_autodocstringstyle:
              # only useful if your sources can't be found
              # in the current working directory
              exclude:
              - my_package

Sponsors

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

griffe_autodocstringstyle-0.2.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

griffe_autodocstringstyle-0.2.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file griffe_autodocstringstyle-0.2.0.tar.gz.

File metadata

File hashes

Hashes for griffe_autodocstringstyle-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f3c469ab9ef75e617864e912f72179cb8bee32b95f735abdf517d91d8cf1ccf5
MD5 2d7049b17fbd15913e3399230f2733d5
BLAKE2b-256 7c112b96dc46d1bc689ed9d75b1b4418c172e759f94ba8d4afdfcc660c7141dd

See more details on using hashes here.

File details

Details for the file griffe_autodocstringstyle-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_autodocstringstyle-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7828d8582b27502cf4b079e5d20cf75ed0ec596e5bf1819af8b7c2a155c0c75
MD5 9e6bd2016b9ecd5c4d9ee4453509b5cf
BLAKE2b-256 17c532dc83b9e6cddfd5997ea5b50f96aeca8890e3cb3b23d8e6558c9a455c8c

See more details on using hashes here.

Supported by

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