docstring-tailor 0.1.1__tar.gz → 0.2.1.dev0__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 (52) hide show
  1. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/.gitignore +3 -0
  2. docstring_tailor-0.2.1.dev0/PKG-INFO +423 -0
  3. docstring_tailor-0.2.1.dev0/README.md +390 -0
  4. docstring_tailor-0.2.1.dev0/assets/gif_images/docstring_slider.gif +0 -0
  5. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/makefile +2 -3
  6. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/pyproject.toml +4 -2
  7. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/src/docstring_tailor/cli_config.py +6 -3
  8. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/src/docstring_tailor/constants.py +25 -11
  9. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/src/docstring_tailor/docstring_visitor.py +4 -1
  10. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/src/docstring_tailor/main.py +75 -34
  11. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/src/docstring_tailor/multi_line_docstring_formatter.py +115 -112
  12. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/__init__.py +1 -0
  13. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/utils_cli.py +55 -0
  14. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/utils_file_system.py +117 -0
  15. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/utils_formatting.py +86 -0
  16. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/utils_list_detection.py +88 -0
  17. docstring_tailor-0.2.1.dev0/src/docstring_tailor/utils/utils_testing.py +43 -0
  18. docstring_tailor-0.2.1.dev0/tests/cases/__init__.py +1 -0
  19. docstring_tailor-0.2.1.dev0/tests/cases/config_model.py +89 -0
  20. docstring_tailor-0.2.1.dev0/tests/cases/formatting_cases.py +90 -0
  21. docstring_tailor-0.1.1/tests/fixtures/formatted/all_docstring_types_100.py → docstring_tailor-0.2.1.dev0/tests/fixtures/all_docstrings/all_docstrings_100.py +10 -2
  22. docstring_tailor-0.2.1.dev0/tests/fixtures/all_docstrings/all_docstrings_60.py +107 -0
  23. docstring_tailor-0.2.1.dev0/tests/fixtures/all_docstrings/all_docstrings_80.py +85 -0
  24. docstring_tailor-0.1.1/tests/fixtures/raw/all_docstring_types_too_long.py → docstring_tailor-0.2.1.dev0/tests/fixtures/all_docstrings/all_docstrings_too_long.py +9 -7
  25. docstring_tailor-0.2.1.dev0/tests/fixtures/all_docstrings/all_docstrings_too_short.py +167 -0
  26. docstring_tailor-0.1.1/tests/fixtures/raw/function_docstring_complex.py → docstring_tailor-0.2.1.dev0/tests/fixtures/function_docstring_complex/function_docstring_complex_100.py +10 -11
  27. docstring_tailor-0.2.1.dev0/tests/fixtures/function_docstring_complex/function_docstring_complex_60.py +100 -0
  28. docstring_tailor-0.2.1.dev0/tests/fixtures/function_docstring_complex/function_docstring_complex_80.py +88 -0
  29. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_blank_lines/module_docstring_blank_lines.py +8 -0
  30. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_blank_lines/module_docstring_blank_lines_100.py +6 -0
  31. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_empty/module_docstring_empty.py +1 -0
  32. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_empty/module_docstring_empty_blank_lines.py +9 -0
  33. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_example_backticks/module_docstring_example_backticks.py +13 -0
  34. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_example_backticks/module_docstring_example_backticks_60.py +14 -0
  35. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_example_tildes/module_docstring_example_tildes.py +13 -0
  36. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_example_tildes/module_docstring_example_tildes_60.py +14 -0
  37. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_100.py +14 -0
  38. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_60.py +20 -0
  39. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_80.py +16 -0
  40. docstring_tailor-0.2.1.dev0/tests/fixtures/module_docstring_ordered_list/module_docstring_ordered_list_too_long.py +7 -0
  41. docstring_tailor-0.2.1.dev0/tests/fixtures/readme_examples/readme_examples.py +164 -0
  42. docstring_tailor-0.2.1.dev0/tests/test_formatting.py +24 -0
  43. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/uv.lock +1 -9
  44. docstring_tailor-0.1.1/PKG-INFO +0 -208
  45. docstring_tailor-0.1.1/README.md +0 -175
  46. docstring_tailor-0.1.1/src/docstring_tailor/utils.py +0 -70
  47. docstring_tailor-0.1.1/tests/fixtures/formatted/__init__.py +0 -1
  48. docstring_tailor-0.1.1/tests/fixtures/raw/__init__.py +0 -1
  49. docstring_tailor-0.1.1/tests/fixtures/raw/all_docstring_types_too_short.py +0 -97
  50. docstring_tailor-0.1.1/tests/test_docstring_visitor.py +0 -37
  51. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/LICENSE +0 -0
  52. {docstring_tailor-0.1.1 → docstring_tailor-0.2.1.dev0}/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,423 @@
1
+ Metadata-Version: 2.4
2
+ Name: docstring-tailor
3
+ Version: 0.2.1.dev0
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)](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 exapmle 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
+ ![Demo](https://raw.githubusercontent.com/AukeB/docstring-tailor/main/assets/gif_images/docstring_slider.gif)
69
+
70
+ </details>
71
+
72
+ ## Installation
73
+
74
+ Installation with [UV](https://docs.astral.sh/uv/) (recommended)
75
+ ```bash
76
+ uv add --dev docstring-tailor
77
+ ```
78
+
79
+ Or with pip:
80
+
81
+ ```bash
82
+ pip install docstring-tailor
83
+ ```
84
+
85
+ ## Quick start
86
+
87
+ Run on a single file or directory:
88
+
89
+ ```bash
90
+ uv run docstring_tailor my_file.py
91
+ uv run docstring_tailor my_folder
92
+ ```
93
+ Multiple files and/or folders are also accepted. Without a file path or folder path, it will try to locate the `src` folder.
94
+
95
+ The default line length is 100. To customise it:
96
+
97
+ ```bash
98
+ uv run docstring_tailor --line-length 88
99
+ ```
100
+
101
+ Configure it permanently in `pyproject.toml` or in `docstring_tailor.toml`:
102
+
103
+ ```toml
104
+ # pyproject.toml
105
+ [tool.docstring_tailor]
106
+ line-length = 88
107
+ ```
108
+
109
+ ```toml
110
+ # docstring_tailor.toml
111
+ line-length = 88
112
+ ```
113
+
114
+ 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:
115
+
116
+ ```bash
117
+ uv run docstring_tailor --style google
118
+ ```
119
+
120
+ or in `pyproject.toml`
121
+
122
+ ```toml
123
+ [tool.docstring_tailor]
124
+ style = "google"
125
+ ```
126
+
127
+ ## API Overview
128
+
129
+ ### Command
130
+
131
+ ```bash
132
+ uv run docstring_tailor [PATHS ...] [OPTIONS]
133
+ ```
134
+ `PATHS` may contain one or more files and/or directories.
135
+ Examples:
136
+ ```bash
137
+ uv run docstring_tailor my_file.py
138
+ uv run docstring_tailor src/
139
+ uv run docstring_tailor src/ tests/test_file.py
140
+ ```
141
+ If no paths are provided, `docstring_tailor` will attempt to locate and format files inside the `src` directory.
142
+
143
+ ### Options
144
+
145
+ | <div style="width:140px">Option</div> | <div style="width:50px">Type</div> | <div style="width:80px">Default</div> | Description |
146
+ |---|---|---|---|
147
+ | `--line-length` | `int` | 100 | Maximum number of characters allowed per line after formatting. |
148
+ | `--style` | `str` | google | Docstring style to enforce. Currently only the Google docstring style is supported. |
149
+ | `--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. |
150
+ | `--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. |
151
+ | `--diff` | flag | — | Print a unified diff of changes to stdout instead of modifying files. No files are written when this flag is set. |
152
+ | `--version`, `-V` | flag | — | Print the installed version and exit. |
153
+ | `--help` | flag | — | Show the help message and exit. |
154
+
155
+ ### Examples
156
+
157
+ `CLI`
158
+ ```bash
159
+ uv run docstring_tailor src/ --line-length 88
160
+ uv run docstring_tailor my_file.py --style google
161
+ uv run docstring_tailor --detect-lists
162
+ uv run docstring_tailor --no-detect-lists
163
+ uv run docstring_tailor src/ --exclude tests --exclude "src/generated/*.py"
164
+ uv run docstring_tailor src/ --diff
165
+ uv run docstring_tailor --version
166
+ uv run docstring_tailor --help
167
+
168
+ ```
169
+ `pyproject.toml`
170
+ ```toml
171
+ [tool.docstring_tailor]
172
+ line-length = 88
173
+ style = "google"
174
+ detect-lists = true
175
+ exclude = ["tests", "src/generated/*.py"]
176
+ ```
177
+
178
+ `docstring_tailor.toml`
179
+ ```toml
180
+ line-length = 88
181
+ style = "google"
182
+ detect-lists = true
183
+ exclude = ["tests", "src/generated/*.py"]
184
+ ```
185
+
186
+ ## Example docstrings
187
+
188
+ 1. [Google](#google)
189
+ - [Module docstring](#module-docstring)
190
+ - [Class docstring](#class-docstring)
191
+ - [Function docstring](#function-docstring)
192
+ - [Codeblocks](#codeblocks)
193
+ - [Other sections](#other-sections)
194
+ - [Unordered and numbered lists](#unordered-and-numbered-lists)
195
+
196
+ ### Google
197
+
198
+ #### Module docstring
199
+
200
+ ```python
201
+ """Demonstrates a minimal Google-style module docstring.
202
+
203
+ This module exists as a formatting example and illustrates the typical
204
+ structure of a Google-style docstring, including a concise summary
205
+ line followed by an additional descriptive paragraph.
206
+ """
207
+ ```
208
+ - Make sure to you use a **blank line** in between the summary line and the more elaborate description.
209
+
210
+ #### Class docstring
211
+
212
+ ```python
213
+ class ExampleConfiguration:
214
+ """Represents a configuration object used to demonstrate Google-
215
+ style class docstrings.
216
+
217
+ This class is provided as a formatting example and illustrates how
218
+ attributes are documented consistently in the Google docstring
219
+ style.
220
+
221
+ Attributes:
222
+ example_argument_1 (str): Stores the first configuration value
223
+ provided at initialization.
224
+ example_argument_2 (int): Stores the second configuration
225
+ value provided at initialization.
226
+ """
227
+ ```
228
+ - The `Attributes` section is recognized by the formatter and triggers special indentation rules for attribute entries.
229
+ - 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.
230
+
231
+ #### Function docstring
232
+
233
+ ```python
234
+ def example_function(example_argument_1: str, example_argument_2: int) -> str:
235
+ """Demonstrates a Google-style function docstring with multiple
236
+ sections.
237
+
238
+ This function exists purely as a formatting example and
239
+ illustrates how Args, Returns, Examples, and Raises sections are
240
+ structured in a Google-style docstring.
241
+
242
+ Args:
243
+ example_argument_1 (str): First example input value used to
244
+ construct a formatted result string.
245
+ example_argument_2 (int): Second example input value used to
246
+ influence the transformation logic.
247
+
248
+ Returns:
249
+ str: A formatted string combining both input arguments into a
250
+ single human-readable representation.
251
+
252
+ Examples:
253
+ Basic usage with typical inputs produces a simple combined
254
+ string:
255
+
256
+ >>> example_function("alpha", 3)
257
+ 'alpha-3'
258
+
259
+ You can also write text in between two Python REPL sections,
260
+ and this part will be formatted, while the two small code
261
+ sections won't be formatted.
262
+
263
+ >>> example_function(
264
+ ... "beta",
265
+ ... 7,
266
+ ... )
267
+ 'beta-7'
268
+
269
+ Raises:
270
+ ValueError: Raised when example_argument_2 is negative or
271
+ zero, as only positive integers are considered valid in
272
+ this demonstration.
273
+ """
274
+ if example_argument_2 <= 0:
275
+ raise ValueError("example_argument_2 must be positive")
276
+
277
+ return f"{example_argument_1}-{example_argument_2}"
278
+ ```
279
+ - The `Args`, `Returns`, `Examples` and `Raises` section are all keywords recognized by the formatter.
280
+ - You can either use `Args` or `Arguments` for the argument section, and `Example` or `Examples` for the example section.
281
+ - 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.
282
+ - 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.
283
+ - 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.
284
+
285
+ #### Codeblocks
286
+
287
+ ```python
288
+ """Demonstrates a Google-style module docstring containing a code
289
+ block.
290
+
291
+ This module-level docstring is used as a formatting example and shows
292
+ how code blocks can be embedded inside docstrings using fenced
293
+ delimiters.
294
+
295
+ Example:
296
+ ```
297
+ def example_function(x, y):
298
+ return x + y
299
+ ```
300
+ """
301
+ ```
302
+
303
+ ```python
304
+ """Demonstrates a Google-style module docstring containing a code
305
+ block.
306
+
307
+ This module-level docstring is used as a formatting example and shows
308
+ how code blocks can be embedded inside docstrings using fenced
309
+ delimiters.
310
+
311
+ Example:
312
+ ~~~
313
+ def example_function(x, y):
314
+ return x + y
315
+ ~~~
316
+ """
317
+ ```
318
+ - Codeblocks should be under the `Example(s)` section.
319
+ - You can either use backticks ` ``` ` or tildes `~~~`, similar to how code sections work in markdown files.
320
+
321
+ #### Other sections
322
+
323
+ ```python
324
+ def example_generator(n):
325
+ """Generators have a ``Yields`` section instead of a ``Returns``
326
+ section.
327
+
328
+ Args:
329
+ n (int): The upper limit of the range to generate, from 0 to
330
+ `n` - 1.
331
+
332
+ Yields:
333
+ int: The next number in the range of 0 to `n` - 1.
334
+ """
335
+ ```
336
+ - Similar to `Returns`, `Yields` is also supported.
337
+
338
+ ```python
339
+ """Demonstrates a Google-style module docstring containing a Note
340
+ section.
341
+
342
+ This module-level docstring is used as a formatting example and
343
+ illustrates how additional informational sections can be included
344
+ alongside the main description in a Google-style docstring.
345
+
346
+ Note:
347
+ The formatting of this docstring is intentionally designed to test
348
+ how note sections are detected and preserved during docstring
349
+ transformation.
350
+ """
351
+ ```
352
+ - `Note` is a keyword that is also supported.
353
+ - You can use either `Note` or `Notes`.
354
+
355
+ #### Unordered and numbered lists
356
+
357
+ ```python
358
+ """Demonstrates that Google-style docstrings can include structured
359
+ lists.
360
+
361
+ This module-level docstring is used as a formatting example and shows
362
+ how unordered lists can be represented inside a docstring. Each list
363
+ item is recognized by the formatter and rendered on a separate line.
364
+
365
+ Items:
366
+ - Demonstrates that docstrings may contain structured unordered lists
367
+ that are parsed and formatted consistently by the docstring
368
+ formatter.
369
+ - Shows that each list item is treated as an independent element and
370
+ is wrapped separately when exceeding the configured line length.
371
+ - Illustrates that long list items may span multiple lines while
372
+ preserving indentation and list structure integrity across
373
+ formatting operations.
374
+ """
375
+ ```
376
+
377
+ ```python
378
+ """Demonstrates that Google-style docstrings can include structured
379
+ lists.
380
+
381
+ This module-level docstring is used as a formatting example and shows
382
+ how numbered lists can be represented inside a docstring. Each list
383
+ item is recognized by the formatter and rendered on a separate line.
384
+
385
+ Steps:
386
+ 1. Demonstrates that docstrings may contain structured numbered lists
387
+ that are parsed and formatted consistently by the docstring
388
+ formatter.
389
+ 2. Shows that each list item is treated as a separate logical element
390
+ and is wrapped independently when exceeding the configured line
391
+ length.
392
+ 3. Illustrates that long list items may span multiple lines while
393
+ preserving indentation and list structure integrity across
394
+ formatting operations.
395
+ """
396
+ ```
397
+
398
+ - 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.
399
+
400
+ ## Release Notes
401
+
402
+ | <div style="width:70px">Version</div> | <div style="width:100px">Release date</div> | <div style="width:130px">Type</div> | Details |
403
+ |---|---|---|---|
404
+ | `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> |
405
+ | `0.1.1` | 2026-05-31 | Documentation update | Updated the `README.md` file with the 'Installation' and 'Quick Start' section. |
406
+ | `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> |
407
+ | `0.2.1` | 2026-06-10 | 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> |
408
+
409
+ ## Roadmap
410
+
411
+ ### Must have
412
+
413
+ - Support for all major docstrings styles (Google, Numpy, Sphinx, Epydoc).
414
+ - Make sure the package can be used as a pre-commit hook.
415
+
416
+ ### Nice to have
417
+
418
+ - Add docstring linting functionality by converting the docstring into an AST (Abstract Syntax Tree).
419
+ - 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.
420
+
421
+ ### Maybe later
422
+
423
+ - Parameter that allows the user to format module, class and function docstrings independently.