Skip to content

Latest commit

 

History

History
184 lines (146 loc) · 5.81 KB

File metadata and controls

184 lines (146 loc) · 5.81 KB

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.2.7] - 2025-12-04

[0.2.6] - 2025-11-21

  • Fixed
    • Multiline annotations now normalize without inserting spaces inside Literal[...] or other bracketed signatures, even when they span several lines.
    • A bug where bare *args/**kwargs signature lines (typed or untyped) would be merged into previous descriptions
    • NumPy signature syncing left the :class: / :meth: role prefixes behind, producing mismatched annotations like : MyClass
  • Full diff

[0.2.5] - 2025-11-20

[0.2.4] - 2025-10-27

[0.2.3] - 2025-10-22

[0.2.2] - 2025-10-20

[0.2.1] - 2025-10-20

[0.2.0] - 2025-10-20

[0.1.9] - 2025-10-16

  • Added
    • A "# no-format-docstring" directive to ignore certain docstring
    • Verbose diff output via --verbose diff and [tool.format_docstring] verbose
    • Normalize NumPy section headings that include trailing colons (e.g., Parameters:); also, fix Google-style "Arg" header into "Parameters"
  • Changed
    • Added "self format" pre-commit hook to format docstrings within this repo with its own formatting logic
  • Full diff

[0.1.8] - 2025-10-14

  • Fixed
    • Bug in _fix_rst_backticks() where backtick pairs spanning multiple lines (e.g., multi-line external links) were incorrectly processed
    • Added (?!_) lookahead to regex pattern to prevent matching trailing backticks from cross-references (e.g., `text`_)
  • Changed
    • Moved backtick fixing from line-by-line processing to whole-docstring processing to correctly handle multi-line constructs
    • REPL lines (starting with >>> or ... ) are now protected with placeholders during backtick fixing to preserve backticks in Python examples
  • Added
    • Test cases for multi-line external links in test_fix_rst_backticks_cases()
    • Test cases for REPL lines with backticks in test_fix_rst_backticks_cases()
  • Full diff

[0.1.7] - 2025-10-14

[0.1.6] - 2025-10-13

[0.1.5] - 2025-10-13

[0.1.4] - 2025-10-12

[0.1.3] - 2025-10-12

[0.1.2] - 2025-10-08

[0.1.1] - 2025-10-06

[0.1.0] - 2025-10-06

  • Added
    • Initial release of format-docstring
    • Support for NumPy-style docstring formatting
    • Limited support for Google-style docstrings
    • CLI tools: format-docstring and format-docstring-jupyter
    • Configuration via pyproject.toml with [tool.format_docstring] section
    • Options for line length, docstring style, and file exclusion patterns
    • Pre-commit hooks for Python files and Jupyter notebooks
    • Comprehensive test suite with pytest
    • Type checking with mypy
    • Support for Python 3.10-3.12
  • Full diff
    • N/A