mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Some pylint fixes.
This commit is contained in:
parent
8affe87531
commit
2f37a14939
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ clean-patchfiles:
|
|||||||
find . -name '*.rej' -exec rm -f {} +
|
find . -name '*.rej' -exec rm -f {} +
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
@pylint --rcfile utils/pylintrc sphinx converter
|
@pylint --rcfile utils/pylintrc sphinx
|
||||||
|
|
||||||
reindent:
|
reindent:
|
||||||
@$(PYTHON) utils/reindent.py -r -B .
|
@$(PYTHON) utils/reindent.py -r -B .
|
||||||
|
@ -31,7 +31,7 @@ from sphinx.htmlwriter import HTMLWriter, HTMLTranslator, SmartyPantsHTMLTransla
|
|||||||
from sphinx.latexwriter import LaTeXWriter
|
from sphinx.latexwriter import LaTeXWriter
|
||||||
from sphinx.environment import BuildEnvironment, NoUri
|
from sphinx.environment import BuildEnvironment, NoUri
|
||||||
from sphinx.highlighting import PygmentsBridge
|
from sphinx.highlighting import PygmentsBridge
|
||||||
from sphinx.util.console import bold, purple, red, darkgreen
|
from sphinx.util.console import bold, purple, darkgreen
|
||||||
|
|
||||||
# side effect: registers roles and directives
|
# side effect: registers roles and directives
|
||||||
from sphinx import roles
|
from sphinx import roles
|
||||||
|
@ -19,7 +19,6 @@ from docutils import nodes
|
|||||||
from docutils.parsers.rst import directives
|
from docutils.parsers.rst import directives
|
||||||
from docutils.statemachine import ViewList
|
from docutils.statemachine import ViewList
|
||||||
|
|
||||||
from sphinx import addnodes
|
|
||||||
from sphinx.util import rpartition
|
from sphinx.util import rpartition
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
:license: BSD.
|
:license: BSD.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
import glob
|
import glob
|
||||||
import inspect
|
import inspect
|
||||||
|
@ -22,7 +22,6 @@ try:
|
|||||||
from pygments.lexers import get_lexer_by_name
|
from pygments.lexers import get_lexer_by_name
|
||||||
from pygments.formatters import HtmlFormatter, LatexFormatter
|
from pygments.formatters import HtmlFormatter, LatexFormatter
|
||||||
from pygments.filters import ErrorToken
|
from pygments.filters import ErrorToken
|
||||||
from pygments.util import ClassNotFound
|
|
||||||
from pygments.style import Style
|
from pygments.style import Style
|
||||||
from pygments.styles import get_style_by_name
|
from pygments.styles import get_style_by_name
|
||||||
from pygments.styles.friendly import FriendlyStyle
|
from pygments.styles.friendly import FriendlyStyle
|
||||||
|
@ -16,7 +16,7 @@ from urllib2 import build_opener, HTTPError
|
|||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
|
|
||||||
from sphinx.builder import Builder
|
from sphinx.builder import Builder
|
||||||
from sphinx.util.console import bold, purple, red, darkgreen
|
from sphinx.util.console import purple, red, darkgreen
|
||||||
|
|
||||||
# create an opener that will simulate a browser user-agent
|
# create an opener that will simulate a browser user-agent
|
||||||
opener = build_opener()
|
opener = build_opener()
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
:license: BSD.
|
:license: BSD.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, time, shutil
|
import sys, os, time
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
from sphinx.util.console import darkgreen, purple, bold, red, nocolor
|
from sphinx.util.console import purple, bold, red, nocolor
|
||||||
|
|
||||||
|
|
||||||
QUICKSTART_CONF = '''\
|
QUICKSTART_CONF = '''\
|
||||||
|
@ -49,7 +49,7 @@ load-plugins=
|
|||||||
#enable-msg=
|
#enable-msg=
|
||||||
|
|
||||||
# Disable the message(s) with the given id(s).
|
# Disable the message(s) with the given id(s).
|
||||||
disable-msg=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201
|
disable-msg=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201,W0613,W0612,W0622
|
||||||
|
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
Loading…
Reference in New Issue
Block a user