Skip to content
Snippets Groups Projects
Commit 06a5f886 authored by Bienchen's avatar Bienchen
Browse files

Fixed print issue in conf.py

parent 2cc8a722
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
# All configuration values have a default; values that are commented out # All configuration values have a default; values that are commented out
# serve to show the default. # serve to show the default.
import sys, os # pylint: disable=invalid-name,missing-docstring
import sys
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
...@@ -50,7 +52,7 @@ master_doc = 'index' ...@@ -50,7 +52,7 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = u'ProMod3' project = u'ProMod3'
copyright = u'2014, Bienchen' copyright = u'2014, Bienchen'# pylint: disable=redefined-builtin
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
...@@ -179,21 +181,21 @@ htmlhelp_basename = 'ProMod3doc' ...@@ -179,21 +181,21 @@ htmlhelp_basename = 'ProMod3doc'
# -- Options for LaTeX output -------------------------------------------------- # -- Options for LaTeX output --------------------------------------------------
latex_elements = { latex_elements = {
# The paper size ('letterpaper' or 'a4paper'). # The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper', #'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt'). # The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt', #'pointsize': '10pt',
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
#'preamble': '', #'preamble': '',
} }
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'ProMod3.tex', u'ProMod3 Documentation', ('index', 'ProMod3.tex', u'ProMod3 Documentation',
u'Bienchen', 'manual'), u'Bienchen', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of
...@@ -236,9 +238,9 @@ man_pages = [ ...@@ -236,9 +238,9 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'ProMod3', u'ProMod3 Documentation', ('index', 'ProMod3', u'ProMod3 Documentation',
u'Bienchen', 'ProMod3', 'One line description of project.', u'Bienchen', 'ProMod3', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]
# Documents to append as an appendix to all manuals. # Documents to append as an appendix to all manuals.
...@@ -294,10 +296,11 @@ class DocTestLogger(ost.LogSink): ...@@ -294,10 +296,11 @@ class DocTestLogger(ost.LogSink):
ost.LogSink.__init__(self) ost.LogSink.__init__(self)
def LogMessage(self, message, severity): def LogMessage(self, message, severity):
levels = ['ERROR', 'WARNING', 'SCRIPT', 'INFO', 'VERBOSE', 'DEBUG', # there is a reason why we do not put 'severity' to any use in the message
'TRACE'] # written to stdou. If we modify the message handed in by a doctest,
level = levels[severity] # verifying it would mean the creator of the doctest would have to check
print '%s' % (message), # that very code here to get the test right.
sys.stdout.write('%s' % message)
doctest_logger = DocTestLogger() doctest_logger = DocTestLogger()
ost.PushLogSink(doctest_logger) ost.PushLogSink(doctest_logger)
......
...@@ -20,7 +20,7 @@ WHITESPACECHECK_EXCLUDES = [r'.*\.pdf', r'.*\.pdb'] ...@@ -20,7 +20,7 @@ WHITESPACECHECK_EXCLUDES = [r'.*\.pdf', r'.*\.pdb']
## files like documentation as HTML files. ## files like documentation as HTML files.
EXCLUDE_COMPLETELY = [r'^doc/html/.*\.html', r'^doc/html/.*\.js', EXCLUDE_COMPLETELY = [r'^doc/html/.*\.html', r'^doc/html/.*\.js',
r'^doc/html/.*\.inv', r'^doc/html/.*\.txt'] r'^doc/html/.*\.inv', r'^doc/html/.*\.txt']
PYCODECHECK_EXCLUDES = ['extras/pre_commit/pre-commit','doc/cmake.py','doc/conf.py.in'] PYCODECHECK_EXCLUDES = ['extras/pre_commit/pre-commit','doc/cmake.py']
ALLOW_LONG_LINES = ['extras/pre_commit/pm3_csc/filecheck/pylint-unittest-rc', ALLOW_LONG_LINES = ['extras/pre_commit/pm3_csc/filecheck/pylint-unittest-rc',
'extras/pre_commit/pm3_csc/filecheck/pylintrc'] 'extras/pre_commit/pm3_csc/filecheck/pylintrc']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment