From d405c22c90d22c12c4ad904c1ebf9a6a0043d2c3 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Wed, 18 Sep 2024 15:17:53 +0200 Subject: [PATCH] Enforce PEP257 strictly ... ... and put docstrings for class constructors into `.__init__()` methods Source: https://peps.python.org/pep-0257/#multi-line-docstrings --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8f3672d..698ccd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -185,6 +185,8 @@ extend-ignore = [ # never check the following codes "ANN401", # allow dynamically typed expressions with `typing.Any` + "DOC301", # PEP257 => class constructor's docstring go in `.__init__()` + # Comply with black's style # Sources: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#pycodestyle "E203", "E701", "E704", "W503",