- Emit a useful warning if function signature parsing fails (#18).
- Add new
defcustom
:numpydoc-auto-fill-paragraphs
, which when set tot
(the default) will enable automatic paragraph filling for (somewhat) long descriptions. (#16).
- Add support for customizing ignored function arguments (function
Parameters
section) with newdefcustom
:numpydoc-ignored-params
. Contributed by @pakelly in #13.
- Replace instances of
| None
with, optional
in the argument type of docstring.
- Added the ability to include a
Returns
block when a return typehint is not present (#11).
- Parsing default arguments containing punctuation Arguments with commas surrounded by either quotes (strings), braces (dict or set), or parentheses (tuples) were causing bad docstrings. Default dictionaries with colons were also causing bad docstrings. (Issue raised at #7, fixed at #8).
- Renamed
numpydoc-template-desc
tonumpydoc-template-arg-desc
Marked the previous custom variable as obsolete. This change makes the variable name consistent with the closely related variablenumpydoc-template-type-desc
.
- Added new
defcustom
:numpydoc-insert-parameter-types
New variable controls whether the type hint is added to each argument in the parameters block (default ist
).
-
Added support for yasnippet If yasnippet is installed we
yas-expand-snippet
to on-the-fly add the docstring components in buffer. -
Added customization
numpydoc-insertion-style
. Use this single customization to direct the insertion style instead of multiple boolean customization. Can take on:'prompt
(prompt in minibuffer)'yas
(use yasnippet)nil
(no insertion helper, just use templates)
-
Added interactive convenience functions for toggling insertion style.
numpydoc-use-yasnippet
,numpydoc-use-prompt
, andnumpydoc-use-templates
are new interactive convenience functions to adjustnumpydoc-insertion-style
without having to useeval-expression
andsetq
.
-
Removed variable
numpydoc-prompt-for-input
. Not needed anymore (usenumpydoc-insertion-style
). -
Removed function
numpydoc-toggle-prompt
. Not needed anymore (usenumpydoc-use-{yasnippet,prompt,templates}
).
Initial release