source: flex_extract.git/Source/Python/pylintrc @ d9abaac

ctbtodev
Last change on this file since d9abaac was d9abaac, checked in by Anne Philipp <anne.philipp@…>, 4 years ago

after tarball check, applied: dos2unix conversion, some spell corrections, TAB to Space correction

  • Property mode set to 100644
File size: 16.6 KB
Line 
1[MASTER]
2
3# A comma-separated list of package or module names from where C extensions may
4# be loaded. Extensions are loading into the active Python interpreter and may
5# run arbitrary code
6extension-pkg-whitelist=
7
8# Add files or directories to the blacklist. They should be base names, not
9# paths.
10ignore=CVS
11
12# Add files or directories matching the regex patterns to the blacklist. The
13# regex matches against base names, not paths.
14ignore-patterns=
15
16# Python code to execute, usually for sys.path manipulation such as
17# pygtk.require().
18#init-hook=
19
20# Use multiple processes to speed up Pylint.
21jobs=1
22
23# List of plugins (as comma separated values of python modules names) to load,
24# usually to register additional checkers.
25load-plugins=
26
27# Pickle collected data for later comparisons.
28persistent=yes
29
30# Specify a configuration file.
31#rcfile=
32
33# When enabled, pylint would attempt to guess common misconfiguration and emit
34# user-friendly hints instead of false-positive error messages
35suggestion-mode=yes
36
37# Allow loading of arbitrary C extensions. Extensions are imported into the
38# active Python interpreter and may run arbitrary code.
39unsafe-load-any-extension=no
40
41
42[MESSAGES CONTROL]
43
44# Only show warnings with the listed confidence levels. Leave empty to show
45# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46confidence=
47
48# Disable the message, report, category or checker with the given id(s). You
49# can either give multiple identifiers separated by comma (,) or put this
50# option multiple times (only on the command line, not in the configuration
51# file where it should appear only once).You can also use "--disable=all" to
52# disable everything first and then reenable specific checks. For example, if
53# you want to run only the similarities checker, you can use "--disable=all
54# --enable=similarities". If you want to run only the classes checker, but have
55# no Warning level messages displayed, use"--disable=all --enable=classes
56# --disable=W"
57disable=print-statement,
58        parameter-unpacking,
59        unpacking-in-except,
60        old-raise-syntax,
61        backtick,
62        long-suffix,
63        old-ne-operator,
64        old-octal-literal,
65        import-star-module-level,
66        non-ascii-bytes-literal,
67        raw-checker-failed,
68        bad-inline-option,
69        locally-disabled,
70        locally-enabled,
71        file-ignored,
72        suppressed-message,
73        useless-suppression,
74        deprecated-pragma,
75        apply-builtin,
76        basestring-builtin,
77        buffer-builtin,
78        cmp-builtin,
79        coerce-builtin,
80        execfile-builtin,
81        file-builtin,
82        long-builtin,
83        raw_input-builtin,
84        reduce-builtin,
85        standarderror-builtin,
86        unicode-builtin,
87        xrange-builtin,
88        coerce-method,
89        delslice-method,
90        getslice-method,
91        setslice-method,
92        no-absolute-import,
93        old-division,
94        dict-iter-method,
95        dict-view-method,
96        next-method-called,
97        metaclass-assignment,
98        indexing-exception,
99        raising-string,
100        reload-builtin,
101        oct-method,
102        hex-method,
103        nonzero-method,
104        cmp-method,
105        input-builtin,
106        round-builtin,
107        intern-builtin,
108        unichr-builtin,
109        map-builtin-not-iterating,
110        zip-builtin-not-iterating,
111        range-builtin-not-iterating,
112        filter-builtin-not-iterating,
113        using-cmp-argument,
114        eq-without-hash,
115        div-method,
116        idiv-method,
117        rdiv-method,
118        exception-message-attribute,
119        invalid-str-codec,
120        sys-max-int,
121        bad-python3-import,
122        deprecated-string-function,
123        deprecated-str-translate-call,
124        deprecated-itertools-function,
125        deprecated-types-field,
126        next-method-defined,
127        dict-items-not-iterating,
128        dict-keys-not-iterating,
129        dict-values-not-iterating,
130        anomalous-backslash-in-string,
131        relative-import,
132        protected-access
133
134# Enable the message, report, category or checker with the given id(s). You can
135# either give multiple identifier separated by comma (,) or put this option
136# multiple time (only on the command line, not in the configuration file where
137# it should appear only once). See also the "--disable" option for examples.
138enable=c-extension-no-member
139
140
141[REPORTS]
142
143# Python expression which should return a note less than 10 (10 is the highest
144# note). You have access to the variables errors warning, statement which
145# respectively contain the number of errors / warnings messages and the total
146# number of statements analyzed. This is used by the global evaluation report
147# (RP0004).
148evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
149
150# Template used to display messages. This is a python new-style format string
151# used to format the message information. See doc for all details
152#msg-template=
153
154# Set the output format. Available formats are text, parseable, colorized, json
155# and msvs (visual studio).You can also give a reporter class, eg
156# mypackage.mymodule.MyReporterClass.
157output-format=text
158
159# Tells whether to display a full report or only the messages
160reports=no
161
162# Activate the evaluation score.
163score=yes
164
165
166[REFACTORING]
167
168# Maximum number of nested blocks for function / method body
169max-nested-blocks=5
170
171# Complete name of functions that never returns. When checking for
172# inconsistent-return-statements if a never returning function is called then
173# it will be considered as an explicit return statement and no message will be
174# printed.
175never-returning-functions=optparse.Values,sys.exit
176
177
178[TYPECHECK]
179
180# List of decorators that produce context managers, such as
181# contextlib.contextmanager. Add to this list to register other decorators that
182# produce valid context managers.
183contextmanager-decorators=contextlib.contextmanager
184
185# List of members which are set dynamically and missed by pylint inference
186# system, and so shouldn't trigger E1101 when accessed. Python regular
187# expressions are accepted.
188generated-members=
189
190# Tells whether missing members accessed in mixin class should be ignored. A
191# mixin class is detected if its name ends with "mixin" (case insensitive).
192ignore-mixin-members=yes
193
194# This flag controls whether pylint should warn about no-member and similar
195# checks whenever an opaque object is returned when inferring. The inference
196# can return multiple potential results while evaluating a Python object, but
197# some branches might not be evaluated, which results in partial inference. In
198# that case, it might be useful to still emit no-member and other checks for
199# the rest of the inferred objects.
200ignore-on-opaque-inference=yes
201
202# List of class names for which member attributes should not be checked (useful
203# for classes with dynamically set attributes). This supports the use of
204# qualified names.
205ignored-classes=optparse.Values,thread._local,_thread._local
206
207# List of module names for which member attributes should not be checked
208# (useful for modules/projects where namespaces are manipulated during runtime
209# and thus existing member attributes cannot be deduced by static analysis. It
210# supports qualified module names, as well as Unix pattern matching.
211ignored-modules=
212
213# Show a hint with possible names when a member name was not found. The aspect
214# of finding the hint is based on edit distance.
215missing-member-hint=yes
216
217# The minimum edit distance a name should have in order to be considered a
218# similar match for a missing member name.
219missing-member-hint-distance=1
220
221# The total number of similar names that should be taken in consideration when
222# showing a hint for a missing member.
223missing-member-max-choices=1
224
225
226[SIMILARITIES]
227
228# Ignore comments when computing similarities.
229ignore-comments=yes
230
231# Ignore docstrings when computing similarities.
232ignore-docstrings=yes
233
234# Ignore imports when computing similarities.
235ignore-imports=no
236
237# Minimum lines number of a similarity.
238min-similarity-lines=4
239
240
241[SPELLING]
242
243# Limits count of emitted suggestions for spelling mistakes
244max-spelling-suggestions=4
245
246# Spelling dictionary name. Available dictionaries: none. To make it working
247# install python-enchant package.
248spelling-dict=
249
250# List of comma separated words that should not be checked.
251spelling-ignore-words=
252
253# A path to a file that contains private dictionary; one word per line.
254spelling-private-dict-file=
255
256# Tells whether to store unknown words to indicated private dictionary in
257# --spelling-private-dict-file option instead of raising a message.
258spelling-store-unknown-words=no
259
260
261[VARIABLES]
262
263# List of additional names supposed to be defined in builtins. Remember that
264# you should avoid to define new builtins when possible.
265additional-builtins=
266
267# Tells whether unused global variables should be treated as a violation.
268allow-global-unused-variables=yes
269
270# List of strings which can identify a callback function by name. A callback
271# name must start or end with one of those strings.
272callbacks=cb_,
273          _cb
274
275# A regular expression matching the name of dummy variables (i.e. expectedly
276# not used).
277dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
278
279# Argument names that match this expression will be ignored. Default to name
280# with leading underscore
281ignored-argument-names=_.*|^ignored_|^unused_
282
283# Tells whether we should check for unused import in __init__ files.
284init-import=no
285
286# List of qualified module names which can have objects that can redefine
287# builtins.
288redefining-builtins-modules=six.moves,past.builtins,future.builtins
289
290
291[BASIC]
292
293# Naming style matching correct argument names
294argument-naming-style=snake_case
295
296# Regular expression matching correct argument names. Overrides argument-
297# naming-style
298#argument-rgx=
299
300# Naming style matching correct attribute names
301attr-naming-style=snake_case
302
303# Regular expression matching correct attribute names. Overrides attr-naming-
304# style
305#attr-rgx=
306
307# Bad variable names which should always be refused, separated by a comma
308bad-names=foo,
309          bar,
310          baz,
311          toto,
312          tutu,
313          tata
314
315# Naming style matching correct class attribute names
316class-attribute-naming-style=any
317
318# Regular expression matching correct class attribute names. Overrides class-
319# attribute-naming-style
320#class-attribute-rgx=
321
322# Naming style matching correct class names
323class-naming-style=PascalCase
324
325# Regular expression matching correct class names. Overrides class-naming-style
326#class-rgx=
327
328# Naming style matching correct constant names
329const-naming-style=UPPER_CASE
330
331# Regular expression matching correct constant names. Overrides const-naming-
332# style
333#const-rgx=
334
335# Minimum line length for functions/classes that require docstrings, shorter
336# ones are exempt.
337docstring-min-length=-1
338
339# Naming style matching correct function names
340function-naming-style=snake_case
341
342# Regular expression matching correct function names. Overrides function-
343# naming-style
344#function-rgx=
345
346# Good variable names which should always be accepted, separated by a comma
347good-names=i,
348           j,
349           k,
350           ex,
351           Run,
352           _,
353           f,
354           fo,
355           c,
356           p,
357           e,
358           s,
359           l,
360           d,
361           dd,
362           v,
363           ty,
364           st,
365           ti,
366           MR,
367           pk,
368           pv,
369           ni,
370           nj,
371           nt,
372           ix,
373           jy,
374           it,
375           parId,
376           g,
377           h,
378           xa,
379           xb,
380           xc,
381           xd,
382           IA3,
383           dt,
384           fi
385
386# Include a hint for the correct naming format with invalid-name
387include-naming-hint=no
388
389# Naming style matching correct inline iteration names
390inlinevar-naming-style=any
391
392# Regular expression matching correct inline iteration names. Overrides
393# inlinevar-naming-style
394#inlinevar-rgx=
395
396# Naming style matching correct method names
397method-naming-style=snake_case
398
399# Regular expression matching correct method names. Overrides method-naming-
400# style
401#method-rgx=
402
403# Naming style matching correct module names
404module-naming-style=snake_case
405
406# Regular expression matching correct module names. Overrides module-naming-
407# style
408#module-rgx=
409
410# Colon-delimited sets of names that determine each other's naming style when
411# the name regexes allow several styles.
412name-group=
413
414# Regular expression which should only match function or class names that do
415# not require a docstring.
416no-docstring-rgx=^_
417
418# List of decorators that produce properties, such as abc.abstractproperty. Add
419# to this list to register other decorators that produce valid properties.
420property-classes=abc.abstractproperty
421
422# Naming style matching correct variable names
423variable-naming-style=snake_case
424
425# Regular expression matching correct variable names. Overrides variable-
426# naming-style
427#variable-rgx=
428
429
430[MISCELLANEOUS]
431
432# List of note tags to take in consideration, separated by a comma.
433notes=FIXME,
434      XXX,
435      TODO
436
437
438[LOGGING]
439
440# Logging modules to check that the string format arguments are in logging
441# function parameter format
442logging-modules=logging
443
444
445[FORMAT]
446
447# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
448expected-line-ending-format=
449
450# Regexp for a line that is allowed to be longer than the limit.
451ignore-long-lines=^\s*(# )?<?https?://\S+>?$
452
453# Number of spaces of indent required inside a hanging  or continued line.
454indent-after-paren=4
455
456# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
457# tab).
458indent-string='    '
459
460# Maximum number of characters on a single line.
461max-line-length=100
462
463# Maximum number of lines in a module
464max-module-lines=1000
465
466# List of optional constructs for which whitespace checking is disabled. `dict-
467# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
468# `trailing-comma` allows a space between comma and closing bracket: (a, ).
469# `empty-line` allows space-only lines.
470no-space-check=trailing-comma,
471               dict-separator
472
473# Allow the body of a class to be on the same line as the declaration if body
474# contains single statement.
475single-line-class-stmt=no
476
477# Allow the body of an if to be on the same line as the test if there is no
478# else.
479single-line-if-stmt=no
480
481
482[DESIGN]
483
484# Maximum number of arguments for function / method
485max-args=10
486
487# Maximum number of attributes for a class (see R0902).
488max-attributes=7
489
490# Maximum number of boolean expressions in a if statement
491max-bool-expr=5
492
493# Maximum number of branch for function / method body
494max-branches=12
495
496# Maximum number of locals for function / method body
497max-locals=25
498
499# Maximum number of parents for a class (see R0901).
500max-parents=7
501
502# Maximum number of public methods for a class (see R0904).
503max-public-methods=20
504
505# Maximum number of return / yield for function / method body
506max-returns=6
507
508# Maximum number of statements in function / method body
509max-statements=50
510
511# Minimum number of public methods for a class (see R0903).
512min-public-methods=2
513
514
515[IMPORTS]
516
517# Allow wildcard imports from modules that define __all__.
518allow-wildcard-with-all=no
519
520# Analyse import fallback blocks. This can be used to support both Python 2 and
521# 3 compatible code, which means that the block might have code that exists
522# only in one or another interpreter, leading to false positives when analysed.
523analyse-fallback-blocks=no
524
525# Deprecated modules which should not be used, separated by a comma
526deprecated-modules=regsub,
527                   TERMIOS,
528                   Bastion,
529                   rexec
530
531# Create a graph of external dependencies in the given file (report RP0402 must
532# not be disabled)
533ext-import-graph=
534
535# Create a graph of every (i.e. internal and external) dependencies in the
536# given file (report RP0402 must not be disabled)
537import-graph=
538
539# Create a graph of internal dependencies in the given file (report RP0402 must
540# not be disabled)
541int-import-graph=
542
543# Force import order to recognize a module as part of the standard
544# compatibility libraries.
545known-standard-library=
546
547# Force import order to recognize a module as part of a third party library.
548known-third-party=enchant
549
550
551[CLASSES]
552
553# List of method names used to declare (i.e. assign) instance attributes.
554defining-attr-methods=__init__,
555                      __new__,
556                      setUp
557
558# List of member names, which should be excluded from the protected access
559# warning.
560exclude-protected=_asdict,
561                  _fields,
562                  _replace,
563                  _source,
564                  _make
565
566# List of valid names for the first argument in a class method.
567valid-classmethod-first-arg=cls
568
569# List of valid names for the first argument in a metaclass class method.
570valid-metaclass-classmethod-first-arg=mcs
571
572
573[EXCEPTIONS]
574
575# Exceptions that will emit a warning when being caught. Defaults to
576# "Exception"
577overgeneral-exceptions=Exception
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG