[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 09/20] docs/sphinx: Add new qapi-doc Sphinx extension
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v5 09/20] docs/sphinx: Add new qapi-doc Sphinx extension |
Date: |
Fri, 04 Sep 2020 16:44:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
$ pycodestyle docs/sphinx/qapidoc.py
docs/sphinx/qapidoc.py:42:1: E302 expected 2 blank lines, found 1
docs/sphinx/qapidoc.py:50:1: E302 expected 2 blank lines, found 1
docs/sphinx/qapidoc.py:74:80: E501 line too long (80 > 79 characters)
docs/sphinx/qapidoc.py:388:80: E501 line too long (80 > 79 characters)
docs/sphinx/qapidoc.py:391:80: E501 line too long (80 > 79 characters)
docs/sphinx/qapidoc.py:430:1: E302 expected 2 blank lines, found 1
docs/sphinx/qapidoc.py:489:80: E501 line too long (80 > 79 characters)
docs/sphinx/qapidoc.py:495:1: E302 expected 2 blank lines, found 1
$ PYTHONPATH=scripts pylint docs/sphinx/qapidoc.py
************* Module qapidoc
docs/sphinx/qapidoc.py:36:4: E0611: No name 'AutodocReporter' in module
'sphinx.ext.autodoc' (no-name-in-module)
docs/sphinx/qapidoc.py:45:10: R1708: Do not raise StopIteration in generator,
use return statement instead (stop-iteration-return)
docs/sphinx/qapidoc.py:104:4: R0201: Method could be a function (no-self-use)
docs/sphinx/qapidoc.py:253:4: R0201: Method could be a function (no-self-use)
docs/sphinx/qapidoc.py:34:4: C0412: Imports from package sphinx are not grouped
(ungrouped-imports)
------------------------------------------------------------------
Your code has been rated at 9.64/10 (previous run: 8.85/10, +0.79)
Use your judgement.