Set docstring style to 'auto' for external packages.
Project description
griffe-autodocstringstyle
Set docstring style to 'auto' for external packages.
Installation
This project is available to sponsors only, through my Insiders program. See Insiders explanation and installation instructions.
Usage
[Enable(https://mkdocstrings.github.io/griffe/guide/users/extending/#using-extensions)] 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
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
Built Distribution
File details
Details for the file griffe_autodocstringstyle-0.1.0.tar.gz
.
File metadata
- Download URL: griffe_autodocstringstyle-0.1.0.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58d4751735baab780cb2ba980e3f4fdc7bc4ae82c2cbb45a5d6e4c469223131 |
|
MD5 | 6818fc78f2b21eeb5ba531b09082e56e |
|
BLAKE2b-256 | 7482411e3db35c1df5978e2a9c55b894d3802cb54beb884277bc9ba605c52d89 |
File details
Details for the file griffe_autodocstringstyle-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: griffe_autodocstringstyle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111521ed9d8665a7040d24bb6a48a4347f39690ab6a53236c2df7dae9ad05e66 |
|
MD5 | b5741682c0f10b466274cd4b76be0433 |
|
BLAKE2b-256 | e19e7fcf663401c1629ab10c80f28c16070b327be38da8d942a194acef7adff1 |