~ziad-sawalha/keystone/trunk

« back to all changes in this revision

Viewing changes to .pylintrc

  • Committer: Brian Lamar
  • Date: 2011-05-24 15:36:52 UTC
  • mto: This revision was merged to the branch mainline in revision 103.
  • Revision ID: git-v1:6fdc83234f821a3b893c92ab496e6170818fefd2
-Removed .project file from project and added it to .gitignore
-Moved pylintrc -> .pylintrc, personal preference that this file should be available, but not seen
-Moved echo to examples directory, seemed a bit odd to be in the top level
-Moved management directory to tools, seemed a bit odd to be in the top level
-Moved pip-requires to tools/, and updated the reference to it in README.md

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The format of this file isn't really documented; just use --generate-rcfile
 
2
 
 
3
[Messages Control]
 
4
# NOTE(justinsb): We might want to have a 2nd strict pylintrc in future
 
5
# C0111: Don't require docstrings on every method
 
6
# W0511: TODOs in code comments are fine.
 
7
# W0142: *args and **kwargs are fine.
 
8
# W0622: Redefining id is fine.
 
9
disable=C0111,W0511,W0142,W0622
 
10
 
 
11
[Basic]
 
12
# Variable names can be 1 to 31 characters long, with lowercase and underscores
 
13
variable-rgx=[a-z_][a-z0-9_]{0,30}$
 
14
 
 
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
 
 
18
# Method names should be at least 3 characters long
 
19
# and be lowecased with underscores
 
20
method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
 
21
 
 
22
# Module names matching nova-* are ok (files in bin/)
 
23
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$
 
24
 
 
25
# Don't require docstrings on tests.
 
26
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
 
27
 
 
28
[Design]
 
29
max-public-methods=100
 
30
min-public-methods=0
 
31
max-args=6
 
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=_