Added
- Minimum strictness configuration option. You can now specify a minimum
amount of strictness to have when checking docstrings. Strictness does
not affect whether the docstring will be checked or not; it only changes
the amount of checking which is done. For example, if your config file
looks like
[darglint]
strictness=short
Then the following would pass with no errors:
def double(x):
"""Returns the number, multiplied by two."""
return x * 2
The following levels of strictness are available:
- short: One-line descriptions are acceptable;
anything more and the docstring will be fully checked.
- long: One-line descriptions and descriptions
without arguments/returns/yields/etc. sections will be
allowed. Anything more, and the docstring will be fully
checked.
- full: (Default) Docstrings will be fully
checked.