annotate contrib/pylintrc @ 24442:98042b0e19f9

manifest: move C bool polyfill into util.h
author Matt Mackall <mpm@selenic.com>
date Wed, 25 Mar 2015 14:16:10 -0500
parents 86531a7038ed
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
1 # lint Python modules using external checkers.
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
2 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
3 # This is the main checker controlling the other ones and the reports
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
4 # generation. It is itself both a raw checker and an astng checker in order
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
5 # to:
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
6 # * handle message activation / deactivation at the module level
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
7 # * handle some basic but necessary stats'data (number of classes, methods...)
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
8 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
9 [MASTER]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
10
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
11 # Specify a configuration file.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
12 #rcfile=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
13
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
14 # Python code to execute, usually for sys.path manipulation such as
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
15 # pygtk.require().
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
16 #init-hook=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
17
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
18 # Profiled execution.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
19 profile=no
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
20
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
21 # Add <file or directory> to the black list. It should be a base name, not a
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
22 # path. You may set this option multiple times.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
23 ignore=CVS
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
24
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
25 # Pickle collected data for later comparisons.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
26 persistent=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
27
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
28 # Set the cache size for astng objects.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
29 cache-size=500
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
30
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
31 # List of plugins (as comma separated values of python modules names) to load,
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
32 # usually to register additional checkers.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
33 load-plugins=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
34
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
35
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
36 [MESSAGES CONTROL]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
37
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
38 # Enable only checker(s) with the given id(s). This option conflicts with the
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
39 # disable-checker option
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
40 #enable-checker=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
41
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
42 # Enable all checker(s) except those with the given id(s). This option
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
43 # conflicts with the enable-checker option
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
44 #disable-checker=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
45
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
46 # Enable all messages in the listed categories (IRCWEF).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
47 #enable-msg-cat=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
48
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
49 # Disable all messages in the listed categories (IRCWEF).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
50 disable-msg-cat=I
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
51
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
52 # Enable the message(s) with the given id(s).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
53 #enable-msg=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
54
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
55 # Disable the message(s) with the given id(s).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
56 # W0704: except: pass
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
57 # C0111: missing docstring
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
58 # W0403: for the time being absolute imports don't play nice with demandimport
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
59 disable-msg=W0704,C0111,W0403
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
60
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
61
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
62 [REPORTS]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
63
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
64 # Set the output format. Available formats are text, parseable, colorized, msvs
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
65 # (visual studio) and html
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
66 output-format=text
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
67
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
68 # Include message's id in output
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
69 include-ids=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
70
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
71 # Put messages in a separate file for each module / package specified on the
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
72 # command line instead of printing them on stdout. Reports (if any) will be
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
73 # written in a file name "pylint_global.[txt|html]".
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
74 files-output=no
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
75
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
76 # Tells whether to display a full report or only the messages
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
77 reports=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
78
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
79 # Python expression which should return a note less than 10 (10 is the highest
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
80 # note). You have access to the variables errors warning, statement which
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
81 # respectively contain the number of errors / warnings messages and the total
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
82 # number of statements analyzed. This is used by the global evaluation report
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
83 # (R0004).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
84 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
85
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
86 # Add a comment according to your evaluation note. This is used by the global
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
87 # evaluation report (R0004).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
88 comment=no
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
89
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
90 # Enable the report(s) with the given id(s).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
91 #enable-report=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
92
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
93 # Disable the report(s) with the given id(s).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
94 #disable-report=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
95
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
96
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
97 # try to find bugs in the code using type inference
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
98 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
99 [TYPECHECK]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
100
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
101 # Tells whether missing members accessed in mixin class should be ignored. A
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
102 # mixin class is detected if its name ends with "mixin" (case insensitive).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
103 ignore-mixin-members=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
104
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
105 # List of classes names for which member attributes should not be checked
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
106 # (useful for classes with attributes dynamically set).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
107 ignored-classes=SQLObject
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
108
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
109 # When zope mode is activated, add a predefined set of Zope acquired attributes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
110 # to generated-members.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
111 zope=no
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
112
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
113 # List of members which are set dynamically and missed by pylint inference
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
114 # system, and so shouldn't trigger E0201 when accessed.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
115 generated-members=REQUEST,acl_users,aq_parent
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
116
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
117
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
118 # checks for
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
119 # * unused variables / imports
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
120 # * undefined variables
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
121 # * redefinition of variable from builtins or from an outer scope
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
122 # * use of variable before assignment
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
123 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
124 [VARIABLES]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
125
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
126 # Tells whether we should check for unused import in __init__ files.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
127 init-import=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
128
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
129 # A regular expression matching names used for dummy variables (i.e. not used).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
130 dummy-variables-rgx=dummy
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
131
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
132 # List of additional names supposed to be defined in builtins. Remember that
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
133 # you should avoid to define new builtins when possible.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
134 additional-builtins=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
135
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
136
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
137 # checks for :
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
138 # * doc strings
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
139 # * modules / classes / functions / methods / arguments / variables name
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
140 # * number of arguments, local variables, branches, returns and statements in
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
141 # functions, methods
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
142 # * required module attributes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
143 # * dangerous default values as arguments
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
144 # * redefinition of function / method / class
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
145 # * uses of the global statement
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
146 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
147 [BASIC]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
148
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
149 # Required attributes for module, separated by a comma
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
150 required-attributes=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
151
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
152 # Regular expression which should only match functions or classes name which do
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
153 # not require a docstring
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
154 no-docstring-rgx=__.*__
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
155
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
156 # Regular expression which should only match correct module names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
157 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
158
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
159 # Regular expression which should only match correct module level names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
160 const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
161
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
162 # Regular expression which should only match correct class names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
163 class-rgx=[a-zA-Z_][a-zA-Z0-9]+$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
164
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
165 # Regular expression which should only match correct function names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
166 function-rgx=[a-z_][a-z0-9_]{2,30}$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
167
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
168 # Regular expression which should only match correct method names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
169 method-rgx=[a-z_][a-z0-9_]{2,30}$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
170
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
171 # Regular expression which should only match correct instance attribute names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
172 attr-rgx=[a-z_][a-z0-9_]{1,30}$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
173
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
174 # Regular expression which should only match correct argument names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
175 argument-rgx=[a-z_][a-z0-9_]{0,30}$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
176
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
177 # Regular expression which should only match correct variable names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
178 variable-rgx=[a-z_][a-z0-9_]{0,30}$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
179
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
180 # Regular expression which should only match correct list comprehension /
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
181 # generator expression variable names
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
182 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
183
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
184 # Good variable names which should always be accepted, separated by a comma
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
185 good-names=i,j,k,ex,Run,_,ui,c,fn,f,fd,l
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
186
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
187 # Bad variable names which should always be refused, separated by a comma
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
188 bad-names=foo,bar,baz,toto,tutu,tata
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
189
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
190 # List of builtins function names that should not be used, separated by a comma
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
191 #bad-functions=map,filter,apply,input
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
192 bad-functions=map,filter,apply,input
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
193
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
194
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
195 # checks for
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
196 # * external modules dependencies
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
197 # * relative / wildcard imports
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
198 # * cyclic imports
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
199 # * uses of deprecated modules
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
200 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
201 [IMPORTS]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
202
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
203 # Deprecated modules which should not be used, separated by a comma
10403
b8acd325773e pylintrc: string isn't deprecated, only some of its methods
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 10393
diff changeset
204 deprecated-modules=regsub,TERMIOS,Bastion,rexec
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
205
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
206 # Create a graph of every (i.e. internal and external) dependencies in the
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
207 # given file (report R0402 must not be disabled)
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
208 import-graph=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
209
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
210 # Create a graph of external dependencies in the given file (report R0402 must
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
211 # not be disabled)
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
212 ext-import-graph=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
213
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
214 # Create a graph of internal dependencies in the given file (report R0402 must
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
215 # not be disabled)
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
216 int-import-graph=
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
217
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
218
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
219 # checks for sign of poor/misdesign:
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
220 # * number of methods, attributes, local variables...
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
221 # * size, complexity of functions, methods
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
222 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
223 [DESIGN]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
224
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
225 # Maximum number of arguments for function / method
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
226 max-args=5
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
227
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
228 # Maximum number of locals for function / method body
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
229 max-locals=15
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
230
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
231 # Maximum number of return / yield for function / method body
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
232 max-returns=6
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
233
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
234 # Maximum number of branch for function / method body
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
235 max-branchs=12
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
236
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
237 # Maximum number of statements in function / method body
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
238 max-statements=50
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
239
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
240 # Maximum number of parents for a class (see R0901).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
241 max-parents=7
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
242
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
243 # Maximum number of attributes for a class (see R0902).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
244 max-attributes=7
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
245
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
246 # Minimum number of public methods for a class (see R0903).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
247 min-public-methods=2
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
248
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
249 # Maximum number of public methods for a class (see R0904).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
250 max-public-methods=20
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
251
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
252
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
253 # checks for :
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
254 # * methods without self as first argument
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
255 # * overridden methods signature
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
256 # * access only to existent members via self
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
257 # * attributes not defined in the __init__ method
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
258 # * supported interfaces implementation
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
259 # * unreachable code
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
260 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
261 [CLASSES]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
262
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
263 # List of interface methods to ignore, separated by a comma. This is used for
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
264 # instance to not check methods defines in Zope's Interface base class.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
265 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
266
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
267 # List of method names used to declare (i.e. assign) instance attributes.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
268 defining-attr-methods=__init__,__new__,setUp
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
269
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
270
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
271 # checks for :
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
272 # * unauthorized constructions
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
273 # * strict indentation
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
274 # * line length
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
275 # * use of <> instead of !=
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
276 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
277 [FORMAT]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
278
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
279 # Maximum number of characters on a single line.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
280 max-line-length=80
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
281
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
282 # Maximum number of lines in a module
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
283 max-module-lines=1000
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
284
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
285 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
286 # tab).
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
287 indent-string=' '
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
288
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
289
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
290 # checks for:
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
291 # * warning notes in the code like FIXME, XXX
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
292 # * PEP 263: source code with non ascii character but no encoding declaration
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
293 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
294 [MISCELLANEOUS]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
295
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
296 # List of note tags to take in consideration, separated by a comma.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
297 notes=FIXME,XXX,TODO
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
298
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
299
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
300 # checks for similarities and duplicated code. This computation may be
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
301 # memory / CPU intensive, so you should disable it if you experiments some
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
302 # problems.
19023
86531a7038ed codingstyle: remove trailing spaces in various text files
Mads Kiilerich <madski@unity3d.com>
parents: 10403
diff changeset
303 #
10393
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
304 [SIMILARITIES]
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
305
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
306 # Minimum lines number of a similarity.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
307 min-similarity-lines=4
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
308
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
309 # Ignore comments when computing similarities.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
310 ignore-comments=yes
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
311
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
312 # Ignore docstrings when computing similarities.
217703f760d1 add pylintrc with some mercurial specific configuration
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
313 ignore-docstrings=yes