mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
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 <kchai@redhat.com>
This commit is contained in:
parent
f3f0b3027e
commit
664547a665
@ -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/*',
|
||||
|
Loading…
Reference in New Issue
Block a user