No project description provided
Project description
behave_auto_docstring
Adds a simple docstring to behave step, e.g.
from behave_auto_docstring import when
@when("A function is declared")
def function(context): ...
is equivalent to
from behave import when
@when("A function is declared")
def function(context):
"""
Usage:
```gherkin
When A function is declared
```
""""
Usage with mkdocs
For mkdocstrings to parse the resulting docs, you need to add
plugins:
- mkdocstrings:
handlers:
python:
options:
extensions:
- behave_auto_docstring.griffe
to your mkdocs.yml file.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file behave_auto_docstring-0.1.3.tar.gz.
File metadata
- Download URL: behave_auto_docstring-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4245ffa9c3c8a0e0fd03103f6ee7dd674e18c489912cdb837403c1b68d8a834
|
|
| MD5 |
2cc4ddff5ddc193ac077f31509e7be21
|
|
| BLAKE2b-256 |
214aac4077ce6b11260481cbb5bdf0aa083c6467b3db1cce61571f78da1500e7
|
File details
Details for the file behave_auto_docstring-0.1.3-py3-none-any.whl.
File metadata
- Download URL: behave_auto_docstring-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ddbf9fa471b4f0f5a88099a8509c681351837f1abaa28fa51538c605ab10a4a
|
|
| MD5 |
c14f78aa2a1c94214f7069ee0d3e107c
|
|
| BLAKE2b-256 |
e5ec7943538b3301cba237b799aceb8477e26a4b394c2452993581a88593810b
|