~hudson-openstack/nova/trunk

815.6.1 by Justin Santa Barbara
Don't complain about the _ function being used
1
# The format of this file isn't really documented; just use --generate-rcfile
2
206.3.3 by Eric Day
Cleaned up pep8/pylint for bin/* files. I did not fix rsapi since this is already cleaned up in another branch.
3
[Messages Control]
815.6.3 by Justin Santa Barbara
Don't warn about C0111 (No docstrings)
4
# NOTE(justinsb): We might want to have a 2nd strict pylintrc in future
5
# C0111: Don't require docstrings on every method
246.3.1 by Eric Day
Added unittests for wsgi and api.
6
# W0511: TODOs in code comments are fine.
7
# W0142: *args and **kwargs are fine.
267.2.16 by Cerberus
Merge prop fixes and pylint/pep8 cleanup
8
# W0622: Redefining id is fine.
815.6.3 by Justin Santa Barbara
Don't warn about C0111 (No docstrings)
9
disable=C0111,W0511,W0142,W0622
206.3.3 by Eric Day
Cleaned up pep8/pylint for bin/* files. I did not fix rsapi since this is already cleaned up in another branch.
10
206.3.1 by Eric Day
First pass at making a file pass pep8 and pylint tests as an example.
11
[Basic]
246.3.6 by Eric Day
More pylintrc updates.
12
# Variable names can be 1 to 31 characters long, with lowercase and underscores
212.1.4 by jaypipes at gmail
Fix up variable names instead of disabling pylint naming rule. Makes variables able to be a single letter in pylintrc
13
variable-rgx=[a-z_][a-z0-9_]{0,30}$
14
246.3.6 by Eric Day
More pylintrc updates.
15
# Argument names can be 2 to 31 characters long, with lowercase and underscores
16
argument-rgx=[a-z_][a-z0-9_]{1,30}$
17
212.1.4 by jaypipes at gmail
Fix up variable names instead of disabling pylint naming rule. Makes variables able to be a single letter in pylintrc
18
# Method names should be at least 3 characters long
19
# and be lowecased with underscores
375.2.1 by Eric Day
PEP8 and pylint cleanup. There should be no functional changes here, just style changes to get violations down.
20
method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
206.3.1 by Eric Day
First pass at making a file pass pep8 and pylint tests as an example.
21
246.3.1 by Eric Day
Added unittests for wsgi and api.
22
# Module names matching nova-* are ok (files in bin/)
246.3.5 by Eric Day
Added '-' as possible charater in module rgx.
23
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$
246.3.1 by Eric Day
Added unittests for wsgi and api.
24
25
# Don't require docstrings on tests.
26
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
27
206.3.1 by Eric Day
First pass at making a file pass pep8 and pylint tests as an example.
28
[Design]
29
max-public-methods=100
30
min-public-methods=0
246.3.6 by Eric Day
More pylintrc updates.
31
max-args=6
815.6.1 by Justin Santa Barbara
Don't complain about the _ function being used
32
33
[Variables]
34
35
# List of additional names supposed to be defined in builtins. Remember that
36
# you should avoid to define new builtins when possible.
37
# _ is used by our localization
38
additional-builtins=_