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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[MASTER]
|
| 2 |
+
|
| 3 |
+
# Specify a configuration file.
|
| 4 |
+
#rcfile=
|
| 5 |
+
|
| 6 |
+
# Python code to execute, usually for sys.path manipulation such as
|
| 7 |
+
# pygtk.require().
|
| 8 |
+
#init-hook=
|
| 9 |
+
|
| 10 |
+
# Profiled execution.
|
| 11 |
+
profile=no
|
| 12 |
+
|
| 13 |
+
# Add files or directories to the blacklist. They should be base names, not
|
| 14 |
+
# paths.
|
| 15 |
+
ignore=CVS
|
| 16 |
+
|
| 17 |
+
# Pickle collected data for later comparisons.
|
| 18 |
+
persistent=yes
|
| 19 |
+
|
| 20 |
+
# List of plugins (as comma separated values of python modules names) to load,
|
| 21 |
+
# usually to register additional checkers.
|
| 22 |
+
load-plugins=
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
[MESSAGES CONTROL]
|
| 26 |
+
|
| 27 |
+
# Enable the message, report, category or checker with the given id(s). You can
|
| 28 |
+
# either give multiple identifier separated by comma (,) or put this option
|
| 29 |
+
# multiple time.
|
| 30 |
+
#enable=
|
| 31 |
+
|
| 32 |
+
# Disable the message, report, category or checker with the given id(s). You
|
| 33 |
+
# can either give multiple identifier separated by comma (,) or put this option
|
| 34 |
+
# multiple time (only on the command line, not in the configuration file where
|
| 35 |
+
# it should appear only once).
|
| 36 |
+
#disable=
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
[REPORTS]
|
| 40 |
+
|
| 41 |
+
# Set the output format. Available formats are text, parseable, colorized, msvs
|
| 42 |
+
# (visual studio) and html
|
| 43 |
+
output-format=text
|
| 44 |
+
|
| 45 |
+
# Include message's id in output
|
| 46 |
+
include-ids=no
|
| 47 |
+
|
| 48 |
+
# Put messages in a separate file for each module / package specified on the
|
| 49 |
+
# command line instead of printing them on stdout. Reports (if any) will be
|
| 50 |
+
# written in a file name "pylint_global.[txt|html]".
|
| 51 |
+
files-output=no
|
| 52 |
+
|
| 53 |
+
# Tells whether to display a full report or only the messages
|
| 54 |
+
reports=yes
|
| 55 |
+
|
| 56 |
+
# Python expression which should return a note less than 10 (10 is the highest
|
| 57 |
+
# note). You have access to the variables errors warning, statement which
|
| 58 |
+
# respectively contain the number of errors / warnings messages and the total
|
| 59 |
+
# number of statements analyzed. This is used by the global evaluation report
|
| 60 |
+
# (RP0004).
|
| 61 |
+
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
| 62 |
+
|
| 63 |
+
# Add a comment according to your evaluation note. This is used by the global
|
| 64 |
+
# evaluation report (RP0004).
|
| 65 |
+
comment=no
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
[FORMAT]
|
| 69 |
+
|
| 70 |
+
# Maximum number of characters on a single line.
|
| 71 |
+
max-line-length=80
|
| 72 |
+
|
| 73 |
+
# Maximum number of lines in a module
|
| 74 |
+
max-module-lines=1000
|
| 75 |
+
|
| 76 |
+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
|
| 77 |
+
# tab).
|
| 78 |
+
indent-string=' '
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
[TYPECHECK]
|
| 82 |
+
|
| 83 |
+
# Tells whether missing members accessed in mixin class should be ignored. A
|
| 84 |
+
# mixin class is detected if its name ends with "mixin" (case insensitive).
|
| 85 |
+
ignore-mixin-members=yes
|
| 86 |
+
|
| 87 |
+
# List of classes names for which member attributes should not be checked
|
| 88 |
+
# (useful for classes with attributes dynamically set).
|
| 89 |
+
ignored-classes=SQLObject
|
| 90 |
+
|
| 91 |
+
# When zope mode is activated, add a predefined set of Zope acquired attributes
|
| 92 |
+
# to generated-members.
|
| 93 |
+
zope=no
|
| 94 |
+
|
| 95 |
+
# List of members which are set dynamically and missed by pylint inference
|
| 96 |
+
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
| 97 |
+
# expressions are accepted.
|
| 98 |
+
generated-members=REQUEST,acl_users,aq_parent
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
[SIMILARITIES]
|
| 102 |
+
|
| 103 |
+
# Minimum lines number of a similarity.
|
| 104 |
+
min-similarity-lines=4
|
| 105 |
+
|
| 106 |
+
# Ignore comments when computing similarities.
|
| 107 |
+
ignore-comments=yes
|
| 108 |
+
|
| 109 |
+
# Ignore docstrings when computing similarities.
|
| 110 |
+
ignore-docstrings=yes
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
[BASIC]
|
| 114 |
+
|
| 115 |
+
# Required attributes for module, separated by a comma
|
| 116 |
+
required-attributes=
|
| 117 |
+
|
| 118 |
+
# List of builtins function names that should not be used, separated by a comma
|
| 119 |
+
bad-functions=map,filter,apply,input
|
| 120 |
+
|
| 121 |
+
# Regular expression which should only match correct module names
|
| 122 |
+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
| 123 |
+
|
| 124 |
+
# Regular expression which should only match correct module level names
|
| 125 |
+
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
| 126 |
+
|
| 127 |
+
# Regular expression which should only match correct class names
|
| 128 |
+
class-rgx=[A-Z_][a-zA-Z0-9]+$
|
| 129 |
+
|
| 130 |
+
# Regular expression which should only match correct function names
|
| 131 |
+
function-rgx=[a-z_][a-z0-9_]{2,30}$
|
| 132 |
+
|
| 133 |
+
# Regular expression which should only match correct method names
|
| 134 |
+
method-rgx=[a-z_][a-z0-9_]{2,30}$
|
| 135 |
+
|
| 136 |
+
# Regular expression which should only match correct instance attribute names
|
| 137 |
+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
|
| 138 |
+
|
| 139 |
+
# Regular expression which should only match correct argument names
|
| 140 |
+
argument-rgx=[a-z_][a-z0-9_]{2,30}$
|
| 141 |
+
|
| 142 |
+
# Regular expression which should only match correct variable names
|
| 143 |
+
variable-rgx=[a-z_][a-z0-9_]{2,30}$
|
| 144 |
+
|
| 145 |
+
# Regular expression which should only match correct list comprehension /
|
| 146 |
+
# generator expression variable names
|
| 147 |
+
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
| 148 |
+
|
| 149 |
+
# Good variable names which should always be accepted, separated by a comma
|
| 150 |
+
good-names=f,i,j,k,ex,Run,_
|
| 151 |
+
|
| 152 |
+
# Bad variable names which should always be refused, separated by a comma
|
| 153 |
+
bad-names=foo,bar,baz,toto,tutu,tata
|
| 154 |
+
|
| 155 |
+
# Regular expression which should only match functions or classes name which do
|
| 156 |
+
# not require a docstring
|
| 157 |
+
no-docstring-rgx=__.*__
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
[VARIABLES]
|
| 161 |
+
|
| 162 |
+
# Tells whether we should check for unused import in __init__ files.
|
| 163 |
+
init-import=no
|
| 164 |
+
|
| 165 |
+
# A regular expression matching the beginning of the name of dummy variables
|
| 166 |
+
# (i.e. not used).
|
| 167 |
+
dummy-variables-rgx=_|dummy
|
| 168 |
+
|
| 169 |
+
# List of additional names supposed to be defined in builtins. Remember that
|
| 170 |
+
# you should avoid to define new builtins when possible.
|
| 171 |
+
additional-builtins=
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
[MISCELLANEOUS]
|
| 175 |
+
|
| 176 |
+
# List of note tags to take in consideration, separated by a comma.
|
| 177 |
+
notes=FIXME,XXX,TODO
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
[CLASSES]
|
| 181 |
+
|
| 182 |
+
# List of interface methods to ignore, separated by a comma. This is used for
|
| 183 |
+
# instance to not check methods defines in Zope's Interface base class.
|
| 184 |
+
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
|
| 185 |
+
|
| 186 |
+
# List of method names used to declare (i.e. assign) instance attributes.
|
| 187 |
+
defining-attr-methods=__init__,__new__,setUp
|
| 188 |
+
|
| 189 |
+
# List of valid names for the first argument in a class method.
|
| 190 |
+
valid-classmethod-first-arg=cls
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
[IMPORTS]
|
| 194 |
+
|
| 195 |
+
# Deprecated modules which should not be used, separated by a comma
|
| 196 |
+
deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
|
| 197 |
+
|
| 198 |
+
# Create a graph of every (i.e. internal and external) dependencies in the
|
| 199 |
+
# given file (report RP0402 must not be disabled)
|
| 200 |
+
import-graph=
|
| 201 |
+
|
| 202 |
+
# Create a graph of external dependencies in the given file (report RP0402 must
|
| 203 |
+
# not be disabled)
|
| 204 |
+
ext-import-graph=
|
| 205 |
+
|
| 206 |
+
# Create a graph of internal dependencies in the given file (report RP0402 must
|
| 207 |
+
# not be disabled)
|
| 208 |
+
int-import-graph=
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
[DESIGN]
|
| 212 |
+
|
| 213 |
+
# Maximum number of arguments for function / method
|
| 214 |
+
max-args=5
|
| 215 |
+
|
| 216 |
+
# Argument names that match this expression will be ignored. Default to name
|
| 217 |
+
# with leading underscore
|
| 218 |
+
ignored-argument-names=_.*
|
| 219 |
+
|
| 220 |
+
# Maximum number of locals for function / method body
|
| 221 |
+
max-locals=15
|
| 222 |
+
|
| 223 |
+
# Maximum number of return / yield for function / method body
|
| 224 |
+
max-returns=6
|
| 225 |
+
|
| 226 |
+
# Maximum number of branch for function / method body
|
| 227 |
+
max-branchs=12
|
| 228 |
+
|
| 229 |
+
# Maximum number of statements in function / method body
|
| 230 |
+
max-statements=50
|
| 231 |
+
|
| 232 |
+
# Maximum number of parents for a class (see R0901).
|
| 233 |
+
max-parents=7
|
| 234 |
+
|
| 235 |
+
# Maximum number of attributes for a class (see R0902).
|
| 236 |
+
max-attributes=7
|
| 237 |
+
|
| 238 |
+
# Minimum number of public methods for a class (see R0903).
|
| 239 |
+
min-public-methods=0
|
| 240 |
+
|
| 241 |
+
# Maximum number of public methods for a class (see R0904).
|
| 242 |
+
max-public-methods=20
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
[EXCEPTIONS]
|
| 246 |
+
|
| 247 |
+
# Exceptions that will emit a warning when being caught. Defaults to
|
| 248 |
+
# "Exception"
|
| 249 |
+
overgeneral-exceptions=Exception
|
etc/testlog.conf
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[loggers]
|
| 2 |
+
keys=root,hwp5
|
| 3 |
+
|
| 4 |
+
[handlers]
|
| 5 |
+
keys=file
|
| 6 |
+
|
| 7 |
+
[formatters]
|
| 8 |
+
keys=simple
|
| 9 |
+
|
| 10 |
+
[logger_root]
|
| 11 |
+
handlers=file
|
| 12 |
+
level=DEBUG
|
| 13 |
+
|
| 14 |
+
[logger_hwp5]
|
| 15 |
+
qualname=hwp5
|
| 16 |
+
handlers=file
|
| 17 |
+
level=DEBUG
|
| 18 |
+
|
| 19 |
+
[handler_file]
|
| 20 |
+
class=handlers.RotatingFileHandler
|
| 21 |
+
level=DEBUG
|
| 22 |
+
formatter=simple
|
| 23 |
+
args=('nosetests.log', 'a', 10*1024*1024)
|
| 24 |
+
|
| 25 |
+
[formatter_simple]
|
| 26 |
+
format=%(name)s:%(levelname)s:%(message)s
|
| 27 |
+
datefmt=
|