docstring-tailor 0.1.1__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/.gitignore +3 -0
  2. docstring_tailor-0.2.1/PKG-INFO +425 -0
  3. docstring_tailor-0.2.1/README.md +392 -0
  4. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/makefile +2 -3
  5. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/pyproject.toml +5 -3
  6. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/cli_config.py +6 -3
  7. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/constants.py +25 -11
  8. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/docstring_visitor.py +4 -1
  9. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/main.py +75 -34
  10. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/multi_line_docstring_formatter.py +115 -112
  11. docstring_tailor-0.2.1/src/docstring_tailor/utils/__init__.py +1 -0
  12. docstring_tailor-0.2.1/src/docstring_tailor/utils/utils_cli.py +55 -0
  13. docstring_tailor-0.2.1/src/docstring_tailor/utils/utils_file_system.py +117 -0
  14. docstring_tailor-0.2.1/src/docstring_tailor/utils/utils_formatting.py +86 -0
  15. docstring_tailor-0.2.1/src/docstring_tailor/utils/utils_list_detection.py +88 -0
  16. docstring_tailor-0.2.1/src/docstring_tailor/utils/utils_testing.py +43 -0
  17. docstring_tailor-0.2.1/tests/cases/__init__.py +1 -0
  18. docstring_tailor-0.2.1/tests/cases/config_model.py +89 -0
  19. docstring_tailor-0.2.1/tests/cases/formatting_cases.py +90 -0
  20. docstring_tailor-0.1.1/tests/fixtures/formatted/all_docstring_types_100.py → docstring_tailor-0.2.1/tests/fixtures/all_docstrings/all_docstrings_100.py +10 -2
  21. docstring_tailor-0.2.1/tests/fixtures/all_docstrings/all_docstrings_60.py +107 -0
  22. docstring_tailor-0.2.1/tests/fixtures/all_docstrings/all_docstrings_80.py +85 -0
  23. docstring_tailor-0.1.1/tests/fixtures/raw/all_docstring_types_too_long.py → docstring_tailor-0.2.1/tests/fixtures/all_docstrings/all_docstrings_too_long.py +9 -7
  24. docstring_tailor-0.2.1/tests/fixtures/all_docstrings/all_docstrings_too_short.py +167 -0
  25. docstring_tailor-0.1.1/tests/fixtures/raw/function_docstring_complex.py → docstring_tailor-0.2.1/tests/fixtures/function_docstring_complex/function_docstring_complex_100.py +10 -11
  26. docstring_tailor-0.2.1/tests/fixtures/function_docstring_complex/function_docstring_complex_60.py +100 -0
  27. docstring_tailor-0.2.1/tests/fixtures/function_docstring_complex/function_docstring_complex_80.py +88 -0
  28. docstring_tailor-0.2.1/tests/fixtures/module_docstring_blank_lines/module_docstring_blank_lines.py +8 -0
  29. docstring_tailor-0.2.1/tests/fixtures/module_docstring_blank_lines/module_docstring_blank_lines_100.py +6 -0
  30. docstring_tailor-0.2.1/tests/fixtures/module_docstring_empty/module_docstring_empty.py +1 -0
  31. docstring_tailor-0.2.1/tests/fixtures/module_docstring_empty/module_docstring_empty_blank_lines.py +9 -0
  32. docstring_tailor-0.2.1/tests/fixtures/module_docstring_example_backticks/module_docstring_example_backticks.py +13 -0
  33. docstring_tailor-0.2.1/tests/fixtures/module_docstring_example_backticks/module_docstring_example_backticks_60.py +14 -0
  34. docstring_tailor-0.2.1/tests/fixtures/module_docstring_example_tildes/module_docstring_example_tildes.py +13 -0
  35. docstring_tailor-0.2.1/tests/fixtures/module_docstring_example_tildes/module_docstring_example_tildes_60.py +14 -0
  36. docstring_tailor-0.2.1/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_100.py +14 -0
  37. docstring_tailor-0.2.1/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_60.py +20 -0
  38. docstring_tailor-0.2.1/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_80.py +16 -0
  39. docstring_tailor-0.2.1/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_too_long.py +7 -0
  40. docstring_tailor-0.2.1/tests/fixtures/readme_examples/readme_examples.py +164 -0
  41. docstring_tailor-0.2.1/tests/test_formatting.py +24 -0
  42. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/uv.lock +1 -9
  43. docstring_tailor-0.1.1/PKG-INFO +0 -208
  44. docstring_tailor-0.1.1/README.md +0 -175
  45. docstring_tailor-0.1.1/src/docstring_tailor/utils.py +0 -70
  46. docstring_tailor-0.1.1/tests/fixtures/formatted/__init__.py +0 -1
  47. docstring_tailor-0.1.1/tests/fixtures/raw/__init__.py +0 -1
  48. docstring_tailor-0.1.1/tests/fixtures/raw/all_docstring_types_too_short.py +0 -97
  49. docstring_tailor-0.1.1/tests/test_docstring_visitor.py +0 -37
  50. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/LICENSE +0 -0
  51. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1}/src/docstring_tailor/__init__.py +0 -0
@@ -6,6 +6,9 @@ __pycache__/
6
6
  artifacts/
7
7
  data/
8
8
 
9
+ # Temporary
10
+ notes.md
11
+
9
12
  # Virtual environments
10
13
  venv/
11
14
  .venv/
@@ -0,0 +1,425 @@
1
+ Metadata-Version: 2.4
2
+ Name: docstring-tailor
3
+ Version: 0.2.1
4
+ Summary: Automatic formatting of Python docstrings according to PEP 257
5
+ Author-email: Auke Bruinsma <afbruinsma@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Auke Bruinsma
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ License-File: LICENSE
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Requires-Python: >=3.11
30
+ Requires-Dist: libcst>=1.8.6
31
+ Requires-Dist: typer>=0.26.4
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Docstring Tailor 🪡
35
+
36
+ Automatic formatting of Python docstrings according to PEP 257 and a predefined maximum number of characters per line.
37
+
38
+ [![PyPI Version](https://img.shields.io/pypi/v/docstring-tailor?color=lightblue)](https://pypi.org/project/docstring-tailor/)
39
+ [![License](https://img.shields.io/pypi/l/docstring-tailor?color=lightblue)](https://pypi.org/project/docstring-tailor/)
40
+ [![Wheel](https://img.shields.io/pypi/wheel/docstring-tailor?color=lightblue)](https://pypi.org/project/docstring-tailor/)
41
+ [![Downloads](https://img.shields.io/pypi/dm/docstring-tailor?color=lightblue&cache_bust=1)](https://pypi.org/project/docstring-tailor/)
42
+
43
+
44
+ ## Table of Contents
45
+ 1. [Demo](#demo)
46
+ 2. [Installation](#Installation)
47
+ 3. [Quick start](#quick_start)
48
+ 4. [API Overview](#api-overview)
49
+ - [Command](#command)
50
+ - [Options](#options)
51
+ - [Examples](#examples)
52
+ 5. [Example docstrings](#example-docstrings)
53
+ 6. [Release Notes](#release_notes)
54
+ 7. [Roadmap](#roadmap)
55
+
56
+ ## Demo
57
+
58
+ <details>
59
+ <summary><b>Show demo</b></summary>
60
+
61
+ <br>
62
+
63
+ - `docstring-tailor` formats docstrings to fit a given line length, while preserving its structure throughout — For example blank lines, argument indentation, continuation line alignment, and code blocks in the Examples section all remain intact.
64
+ - **Note**: The slider in the [Marimo notebook](https://marimo.io/) is not part of the package. It was created solely to illustrate how the output changes continuously as the line length varies.
65
+
66
+ <br>
67
+
68
+ <img src="https://github.com/user-attachments/assets/983ae257-472d-465e-9924-9d90bca10f0d" alt="Demo" />
69
+
70
+ If the image does not show, click [here](https://private-user-images.githubusercontent.com/32795119/606010424-983ae257-472d-465e-9924-9d90bca10f0d.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODExNzU3ODQsIm5iZiI6MTc4MTE3NTQ4NCwicGF0aCI6Ii8zMjc5NTExOS82MDYwMTA0MjQtOTgzYWUyNTctNDcyZC00NjVlLTk5MjQtOWQ5MGJjYTEwZjBkLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjExVDEwNTgwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzYjdjYjYyZGJkNDgwZmM3NDFjNjlmMDdiOGI1ZWE0ODA1YTczOTg3NzYwZjkwY2VjYWYwNGJiZDc1NjhkZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.CgQI0L986Mb1A6rcpn22KzG3mnJBTX5kVtlLGEoVN-w).
71
+
72
+ </details>
73
+
74
+ ## Installation
75
+
76
+ Installation with [UV](https://docs.astral.sh/uv/) (recommended)
77
+ ```bash
78
+ uv add --dev docstring-tailor
79
+ ```
80
+
81
+ Or with pip:
82
+
83
+ ```bash
84
+ pip install docstring-tailor
85
+ ```
86
+
87
+ ## Quick start
88
+
89
+ Run on a single file or directory:
90
+
91
+ ```bash
92
+ uv run docstring_tailor my_file.py
93
+ uv run docstring_tailor my_folder
94
+ ```
95
+ Multiple files and/or folders are also accepted. Without a file path or folder path, it will try to locate the `src` folder.
96
+
97
+ The default line length is 100. To customise it:
98
+
99
+ ```bash
100
+ uv run docstring_tailor --line-length 88
101
+ ```
102
+
103
+ Configure it permanently in `pyproject.toml` or in `docstring_tailor.toml`:
104
+
105
+ ```toml
106
+ # pyproject.toml
107
+ [tool.docstring_tailor]
108
+ line-length = 88
109
+ ```
110
+
111
+ ```toml
112
+ # docstring_tailor.toml
113
+ line-length = 88
114
+ ```
115
+
116
+ Define a docstring style, however the only style that is currently supported is [Google](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html). This is also the default style. Explicit configuration:
117
+
118
+ ```bash
119
+ uv run docstring_tailor --style google
120
+ ```
121
+
122
+ or in `pyproject.toml`
123
+
124
+ ```toml
125
+ [tool.docstring_tailor]
126
+ style = "google"
127
+ ```
128
+
129
+ ## API Overview
130
+
131
+ ### Command
132
+
133
+ ```bash
134
+ uv run docstring_tailor [PATHS ...] [OPTIONS]
135
+ ```
136
+ `PATHS` may contain one or more files and/or directories.
137
+ Examples:
138
+ ```bash
139
+ uv run docstring_tailor my_file.py
140
+ uv run docstring_tailor src/
141
+ uv run docstring_tailor src/ tests/test_file.py
142
+ ```
143
+ If no paths are provided, `docstring_tailor` will attempt to locate and format files inside the `src` directory.
144
+
145
+ ### Options
146
+
147
+ | <div style="width:140px">Option</div> | <div style="width:50px">Type</div> | <div style="width:80px">Default</div> | Description |
148
+ |---|---|---|---|
149
+ | `--line-length` | `int` | 100 | Maximum number of characters allowed per line after formatting. |
150
+ | `--style` | `str` | google | Docstring style to enforce. Currently only the Google docstring style is supported. |
151
+ | `--detect-lists` | `bool` | true | Detect unordered and ordered/numbered lists anywhere in a docstring and preserve each list element on its own line during formatting. |
152
+ | `--exclude` | `str` | — | A glob pattern for paths to exclude. Can be passed multiple times. Single-path patterns (e.g. `tests`, `*.pyi`) match by name anywhere in the tree. Relative patterns (e.g. `src/generated/*.py`) match against the path relative to the project root. |
153
+ | `--diff` | flag | — | Print a unified diff of changes to stdout instead of modifying files. No files are written when this flag is set. |
154
+ | `--version`, `-V` | flag | — | Print the installed version and exit. |
155
+ | `--help` | flag | — | Show the help message and exit. |
156
+
157
+ ### Examples
158
+
159
+ `CLI`
160
+ ```bash
161
+ uv run docstring_tailor src/ --line-length 88
162
+ uv run docstring_tailor my_file.py --style google
163
+ uv run docstring_tailor --detect-lists
164
+ uv run docstring_tailor --no-detect-lists
165
+ uv run docstring_tailor src/ --exclude tests --exclude "src/generated/*.py"
166
+ uv run docstring_tailor src/ --diff
167
+ uv run docstring_tailor --version
168
+ uv run docstring_tailor --help
169
+
170
+ ```
171
+ `pyproject.toml`
172
+ ```toml
173
+ [tool.docstring_tailor]
174
+ line-length = 88
175
+ style = "google"
176
+ detect-lists = true
177
+ exclude = ["tests", "src/generated/*.py"]
178
+ ```
179
+
180
+ `docstring_tailor.toml`
181
+ ```toml
182
+ line-length = 88
183
+ style = "google"
184
+ detect-lists = true
185
+ exclude = ["tests", "src/generated/*.py"]
186
+ ```
187
+
188
+ ## Example docstrings
189
+
190
+ 1. [Google](#google)
191
+ - [Module docstring](#module-docstring)
192
+ - [Class docstring](#class-docstring)
193
+ - [Function docstring](#function-docstring)
194
+ - [Codeblocks](#codeblocks)
195
+ - [Other sections](#other-sections)
196
+ - [Unordered and numbered lists](#unordered-and-numbered-lists)
197
+
198
+ ### Google
199
+
200
+ #### Module docstring
201
+
202
+ ```python
203
+ """Demonstrates a minimal Google-style module docstring.
204
+
205
+ This module exists as a formatting example and illustrates the typical
206
+ structure of a Google-style docstring, including a concise summary
207
+ line followed by an additional descriptive paragraph.
208
+ """
209
+ ```
210
+ - Make sure to you use a **blank line** in between the summary line and the more elaborate description.
211
+
212
+ #### Class docstring
213
+
214
+ ```python
215
+ class ExampleConfiguration:
216
+ """Represents a configuration object used to demonstrate Google-
217
+ style class docstrings.
218
+
219
+ This class is provided as a formatting example and illustrates how
220
+ attributes are documented consistently in the Google docstring
221
+ style.
222
+
223
+ Attributes:
224
+ example_argument_1 (str): Stores the first configuration value
225
+ provided at initialization.
226
+ example_argument_2 (int): Stores the second configuration
227
+ value provided at initialization.
228
+ """
229
+ ```
230
+ - The `Attributes` section is recognized by the formatter and triggers special indentation rules for attribute entries.
231
+ - If the description of an attribute extends to the next line, **it must be indented one additional level beyond the attribute name**. This indentation level is important: it is used by the formatter to distinguish between a new attribute entry and a continuation of the previous attribute’s description.
232
+
233
+ #### Function docstring
234
+
235
+ ```python
236
+ def example_function(example_argument_1: str, example_argument_2: int) -> str:
237
+ """Demonstrates a Google-style function docstring with multiple
238
+ sections.
239
+
240
+ This function exists purely as a formatting example and
241
+ illustrates how Args, Returns, Examples, and Raises sections are
242
+ structured in a Google-style docstring.
243
+
244
+ Args:
245
+ example_argument_1 (str): First example input value used to
246
+ construct a formatted result string.
247
+ example_argument_2 (int): Second example input value used to
248
+ influence the transformation logic.
249
+
250
+ Returns:
251
+ str: A formatted string combining both input arguments into a
252
+ single human-readable representation.
253
+
254
+ Examples:
255
+ Basic usage with typical inputs produces a simple combined
256
+ string:
257
+
258
+ >>> example_function("alpha", 3)
259
+ 'alpha-3'
260
+
261
+ You can also write text in between two Python REPL sections,
262
+ and this part will be formatted, while the two small code
263
+ sections won't be formatted.
264
+
265
+ >>> example_function(
266
+ ... "beta",
267
+ ... 7,
268
+ ... )
269
+ 'beta-7'
270
+
271
+ Raises:
272
+ ValueError: Raised when example_argument_2 is negative or
273
+ zero, as only positive integers are considered valid in
274
+ this demonstration.
275
+ """
276
+ if example_argument_2 <= 0:
277
+ raise ValueError("example_argument_2 must be positive")
278
+
279
+ return f"{example_argument_1}-{example_argument_2}"
280
+ ```
281
+ - The `Args`, `Returns`, `Examples` and `Raises` section are all keywords recognized by the formatter.
282
+ - You can either use `Args` or `Arguments` for the argument section, and `Example` or `Examples` for the example section.
283
+ - Similar to the `Attributes` section for the class docstring above, make sure to **introduce another level of indentation** for the description of a function argument, return variable or error description, if it extends to the next line.
284
+ - In the `Example` section, make sure to use `>>>` for the start of the Python REPL, and use `...` for continuation lines. In this way it is consistent with Pydoc.
285
+ - You can also use these keywords in module or class docstrings. For example, an `Args` section in a class docstring, or an `Example(s)` section in a module docstring.
286
+
287
+ #### Codeblocks
288
+
289
+ ```python
290
+ """Demonstrates a Google-style module docstring containing a code
291
+ block.
292
+
293
+ This module-level docstring is used as a formatting example and shows
294
+ how code blocks can be embedded inside docstrings using fenced
295
+ delimiters.
296
+
297
+ Example:
298
+ ```
299
+ def example_function(x, y):
300
+ return x + y
301
+ ```
302
+ """
303
+ ```
304
+
305
+ ```python
306
+ """Demonstrates a Google-style module docstring containing a code
307
+ block.
308
+
309
+ This module-level docstring is used as a formatting example and shows
310
+ how code blocks can be embedded inside docstrings using fenced
311
+ delimiters.
312
+
313
+ Example:
314
+ ~~~
315
+ def example_function(x, y):
316
+ return x + y
317
+ ~~~
318
+ """
319
+ ```
320
+ - Codeblocks should be under the `Example(s)` section.
321
+ - You can either use backticks ` ``` ` or tildes `~~~`, similar to how code sections work in markdown files.
322
+
323
+ #### Other sections
324
+
325
+ ```python
326
+ def example_generator(n):
327
+ """Generators have a ``Yields`` section instead of a ``Returns``
328
+ section.
329
+
330
+ Args:
331
+ n (int): The upper limit of the range to generate, from 0 to
332
+ `n` - 1.
333
+
334
+ Yields:
335
+ int: The next number in the range of 0 to `n` - 1.
336
+ """
337
+ ```
338
+ - Similar to `Returns`, `Yields` is also supported.
339
+
340
+ ```python
341
+ """Demonstrates a Google-style module docstring containing a Note
342
+ section.
343
+
344
+ This module-level docstring is used as a formatting example and
345
+ illustrates how additional informational sections can be included
346
+ alongside the main description in a Google-style docstring.
347
+
348
+ Note:
349
+ The formatting of this docstring is intentionally designed to test
350
+ how note sections are detected and preserved during docstring
351
+ transformation.
352
+ """
353
+ ```
354
+ - `Note` is a keyword that is also supported.
355
+ - You can use either `Note` or `Notes`.
356
+
357
+ #### Unordered and numbered lists
358
+
359
+ ```python
360
+ """Demonstrates that Google-style docstrings can include structured
361
+ lists.
362
+
363
+ This module-level docstring is used as a formatting example and shows
364
+ how unordered lists can be represented inside a docstring. Each list
365
+ item is recognized by the formatter and rendered on a separate line.
366
+
367
+ Items:
368
+ - Demonstrates that docstrings may contain structured unordered lists
369
+ that are parsed and formatted consistently by the docstring
370
+ formatter.
371
+ - Shows that each list item is treated as an independent element and
372
+ is wrapped separately when exceeding the configured line length.
373
+ - Illustrates that long list items may span multiple lines while
374
+ preserving indentation and list structure integrity across
375
+ formatting operations.
376
+ """
377
+ ```
378
+
379
+ ```python
380
+ """Demonstrates that Google-style docstrings can include structured
381
+ lists.
382
+
383
+ This module-level docstring is used as a formatting example and shows
384
+ how numbered lists can be represented inside a docstring. Each list
385
+ item is recognized by the formatter and rendered on a separate line.
386
+
387
+ Steps:
388
+ 1. Demonstrates that docstrings may contain structured numbered lists
389
+ that are parsed and formatted consistently by the docstring
390
+ formatter.
391
+ 2. Shows that each list item is treated as a separate logical element
392
+ and is wrapped independently when exceeding the configured line
393
+ length.
394
+ 3. Illustrates that long list items may span multiple lines while
395
+ preserving indentation and list structure integrity across
396
+ formatting operations.
397
+ """
398
+ ```
399
+
400
+ - Personally, I like to use unordered and numbered lists sometimes in a docstring. Similar to what has been described before, **indentation** is used to detect new list elements.
401
+
402
+ ## Release Notes
403
+
404
+ | <div style="width:70px">Version</div> | <div style="width:100px">Release date</div> | <div style="width:130px">Type</div> | Details |
405
+ |---|---|---|---|
406
+ | `0.1.0` | 2026-05-31 | Initial release | First public release of `docstring-tailor`. Includes <ul><li>Automatic docstring wrapping for module, class and function docstrings, for both one line and multi line docstrings, with a configurable `line-length` parameter.</li><li>Paragraph-aware formatting, differentiating between 'Args', 'Examples' or normal text sections.</li> <li> Docstring support for the Google `style` (Numpy, Sphinx, Epydoc not yet supported). </li><li>TOML-based configuration support.</li><li> Test coverage: 52% </ul> |
407
+ | `0.1.1` | 2026-05-31 | Documentation update | Updated the `README.md` file with the 'Installation' and 'Quick Start' section. |
408
+ | `0.2.0` | 2026-06-07 | Feature update | <ul><li>Implemented the `detect-lists` parameter, adding support for unordered and ordered (numbered) lists in docstrings. When enabled, list structures are detected automatically and each list item is formatted onto its own line.</li><li>Introduced a declarative golden-file test framework for formatter validation. Test cases are now generated from parametrized templates using Cartesian-product expansion, significantly reducing boilerplate and improving scalability for configuration coverage.</li><li>Expanded this `README.md` with the 'API Overview', 'Release Notes', 'Example docstrings' and 'Roadmap' sections.</li><li>Test coverage: 75%</li></ul> |
409
+ | `0.2.1` | 2026-06-11 | Feature update | <ul><li>Added the `-V`/`--version` command to the CLI.</li><li>Added the `--exclude` command to the CLI.</li><li>Added the `--diff` command to the CLI.</li><li>Added the 'Demo' part to to the `README.md`.</ul> |
410
+
411
+ ## Roadmap
412
+
413
+ ### Must have
414
+
415
+ - Support for all major docstrings styles (Google, Numpy, Sphinx, Epydoc).
416
+ - Make sure the package can be used as a pre-commit hook.
417
+
418
+ ### Nice to have
419
+
420
+ - Add docstring linting functionality by converting the docstring into an AST (Abstract Syntax Tree).
421
+ - Add docstring conversion functionality that allows you to change your docstring style. For example, conversion from the 'Google' docstring style to 'Numpy'. Passing the linting phase successfully would be a requirement for conversion.
422
+
423
+ ### Maybe later
424
+
425
+ - Parameter that allows the user to format module, class and function docstrings independently.