File: in_file.rst

package info (click to toggle)
pydocstyle 6.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: python: 5,183; makefile: 162
file content (15 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
``pydocstyle`` supports inline commenting to skip specific checks on
specific functions or methods. The supported comments that can be added are:

1. ``"# noqa"`` skips all checks.

2. ``"# noqa: D102,D203"`` can be used to skip specific checks. Note that
   this is compatible with skips from `flake8 <http://flake8.pycqa.org/>`_,
   e.g. ``# noqa: D102,E501,D203``.

For example, this will skip the check for a period at the end of a function
docstring::

    >>> def bad_function():  # noqa: D400
    ...     """Omit a period in the docstring as an exception"""
    ...     pass