https://github.com/mkdocstrings/griffe-autodocstringstyle
Set docstring style to 'auto' for external packages. Available to sponsors only.
https://github.com/mkdocstrings/griffe-autodocstringstyle
docstring-style docstrings google-style griffe griffe-extension numpydoc
Last synced: 27 days ago
JSON representation
Set docstring style to 'auto' for external packages. Available to sponsors only.
- Host: GitHub
- URL: https://github.com/mkdocstrings/griffe-autodocstringstyle
- Owner: mkdocstrings
- License: isc
- Created: 2024-08-16T15:47:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-08T17:41:53.000Z (4 months ago)
- Last Synced: 2025-11-08T18:04:37.392Z (4 months ago)
- Topics: docstring-style, docstrings, google-style, griffe, griffe-extension, numpydoc
- Language: Python
- Homepage: https://mkdocstrings.github.io/griffe-autodocstringstyle
- Size: 405 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# griffe-autodocstringstyle
[](https://github.com/mkdocstrings/griffe-autodocstringstyle/actions?query=workflow%3Aci)
[](https://mkdocstrings.github.io/griffe-autodocstringstyle/)
[](https://pypi.org/project/griffe-autodocstringstyle/)
[](https://app.gitter.im/#/room/#griffe-autodocstringstyle:gitter.im)
Set docstring style to 'auto' for external packages.
## Installation
```bash
pip install griffe-autodocstringstyle
```
## 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:
```yaml
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
---
*And 7 more private sponsor(s).*
