From 81e5d8ef123f090ace011922bf45295cdfc9b968 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Fri, 3 Jun 2016 08:45:45 -0500 Subject: [PATCH] PEP257: Ignore D203 because it was deprecated PEP257's D203 check ensures that you have a blank line before class docstrings. This rule directly conflicts with D211 (no blank lines before class docstrings), which is intended to supersede D203. The original language in PEP257 which D203 was based on was actually removed from PEP257 by Guido here: https://hg.python.org/peps/rev/9b715d8246db Change-Id: Icc048b947acea8f655d00540c221123b906e7545 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ca0c391820..4c2c4eec0c 100644 --- a/tox.ini +++ b/tox.ini @@ -140,7 +140,8 @@ show-source = true # D102: Missing docstring in public method # D103: Missing docstring in public function # D104: Missing docstring in public package -ignore = D100,D101,D102,D103,D104 +# D203: 1 blank line required before class docstring (deprecated in pep257) +ignore = D100,D101,D102,D103,D104,D203 exclude=.venv,.git,.tox,build,dist,doc,*openstack/common*,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot max-complexity=24