From 2df5ab926eb46da1cb2360b0fd8319d395ef06cd Mon Sep 17 00:00:00 2001 From: licanwei Date: Thu, 4 Apr 2019 14:56:41 +0800 Subject: [PATCH] Fix docs gate failed Change-Id: I334b76ce9284a41583e06bdd05900ba2baf4dc64 --- tox.ini | 4 +++- watcher/hacking/checks.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ea2ae04d4..a73652da3 100644 --- a/tox.ini +++ b/tox.ini @@ -44,7 +44,9 @@ commands = basepython = python3 setenv = PYTHONHASHSEED=0 deps = -r{toxinidir}/doc/requirements.txt -commands = sphinx-build -W -b html doc/source doc/build/html +commands = + rm -fr doc/build doc/source/api/ .autogenerated + sphinx-build -W -b html doc/source doc/build/html [testenv:api-ref] basepython = python3 diff --git a/watcher/hacking/checks.py b/watcher/hacking/checks.py index bd8351146..4d880f512 100644 --- a/watcher/hacking/checks.py +++ b/watcher/hacking/checks.py @@ -91,6 +91,7 @@ def no_translate_debug_logs(logical_line, filename): we shouldn't translate debug level logs. * This check assumes that 'LOG' is a logger. + N319 """ for hint in _all_hints: