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