mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Tweak conf.py for moar quieter pylint
This commit is contained in:
parent
1b8e323559
commit
5330026341
1 changed files with 12 additions and 3 deletions
15
doc/conf.py
15
doc/conf.py
|
@ -1,5 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# pylint: disable=C0103,W0622
|
||||
'''
|
||||
Sphinx documentation for Salt
|
||||
'''
|
||||
import sys
|
||||
import os
|
||||
import types
|
||||
|
@ -7,6 +10,7 @@ import types
|
|||
from sphinx.directives import TocTree
|
||||
|
||||
|
||||
# pylint: disable=R0903
|
||||
class Mock(object):
|
||||
'''
|
||||
Mock out specified imports
|
||||
|
@ -30,6 +34,7 @@ class Mock(object):
|
|||
return type(name, (), {})
|
||||
else:
|
||||
return Mock()
|
||||
# pylint: enable=R0903
|
||||
|
||||
MOCK_MODULES = [
|
||||
# salt core
|
||||
|
@ -93,8 +98,12 @@ master_doc = 'contents'
|
|||
templates_path = ['_templates']
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
extensions = ['saltdocs', 'sphinx.ext.autodoc', 'sphinx.ext.extlinks',
|
||||
'sphinx.ext.autosummary']
|
||||
extensions = [
|
||||
'saltdocs',
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.autosummary',
|
||||
'sphinx.ext.extlinks',
|
||||
]
|
||||
|
||||
modindex_common_prefix = ['salt.']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue