From 664547a665824022ac419fd633a02fe1740e0df9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 20 Nov 2020 11:04:43 +0800 Subject: [PATCH] doc/conf: disable "undefined name" warning from flake8 "tags" is exposed by sphinx, so we will have access to this variable when sphinx imports this file. this silences the warning from flake8: undefined name 'tags' [F821] Signed-off-by: Kefu Chai --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index f8715e8e6f5..208a2640ae5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -12,7 +12,7 @@ templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' exclude_patterns = ['**/.#*', '**/*~', 'start/quick-common.rst', '**/*.inc.rst'] -if tags.has('man'): +if tags.has('man'): # noqa: F821 master_doc = 'man_index' exclude_patterns += ['index.rst', 'architecture.rst', 'glossary.rst', 'release*.rst', 'api/*',