2011-03-16 14:34:44 -07:00
|
|
|
# The format of this file isn't really documented; just use --generate-rcfile
|
|
|
|
|
2010-08-07 19:51:17 -07:00
|
|
|
[Messages Control]
|
2011-03-16 15:28:09 -07:00
|
|
|
# NOTE(justinsb): We might want to have a 2nd strict pylintrc in future
|
|
|
|
# C0111: Don't require docstrings on every method
|
2010-08-17 23:46:16 -07:00
|
|
|
# W0511: TODOs in code comments are fine.
|
|
|
|
# W0142: *args and **kwargs are fine.
|
2010-09-28 16:46:21 -05:00
|
|
|
# W0622: Redefining id is fine.
|
2011-03-16 15:28:09 -07:00
|
|
|
disable=C0111,W0511,W0142,W0622
|
2010-08-07 19:51:17 -07:00
|
|
|
|
2010-08-05 13:51:44 -07:00
|
|
|
[Basic]
|
2010-08-18 18:38:34 -07:00
|
|
|
# Variable names can be 1 to 31 characters long, with lowercase and underscores
|
2010-08-09 12:37:15 -04:00
|
|
|
variable-rgx=[a-z_][a-z0-9_]{0,30}$
|
|
|
|
|
2010-08-18 18:38:34 -07:00
|
|
|
# Argument names can be 2 to 31 characters long, with lowercase and underscores
|
|
|
|
argument-rgx=[a-z_][a-z0-9_]{1,30}$
|
|
|
|
|
2010-08-09 12:37:15 -04:00
|
|
|
# Method names should be at least 3 characters long
|
|
|
|
# and be lowecased with underscores
|
2010-10-21 11:49:51 -07:00
|
|
|
method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
|
2010-08-05 13:51:44 -07:00
|
|
|
|
2010-08-17 23:46:16 -07:00
|
|
|
# Module names matching nova-* are ok (files in bin/)
|
2010-08-18 17:38:00 -07:00
|
|
|
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$
|
2010-08-17 23:46:16 -07:00
|
|
|
|
|
|
|
# Don't require docstrings on tests.
|
|
|
|
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
|
|
|
|
|
2010-08-05 13:51:44 -07:00
|
|
|
[Design]
|
|
|
|
max-public-methods=100
|
|
|
|
min-public-methods=0
|
2010-08-18 18:38:34 -07:00
|
|
|
max-args=6
|
2011-03-16 14:34:44 -07:00
|
|
|
|
|
|
|
[Variables]
|
|
|
|
|
|
|
|
# List of additional names supposed to be defined in builtins. Remember that
|
|
|
|
# you should avoid to define new builtins when possible.
|
|
|
|
# _ is used by our localization
|
|
|
|
additional-builtins=_
|