|
| 1 | +[MASTER] |
| 2 | +init-hook='import sys; sys.path.append("scripts"); sys.path.append("framework/scripts")' |
| 3 | +min-similarity-lines=10 |
| 4 | + |
| 5 | +[BASIC] |
| 6 | +# We're ok with short funtion argument names. |
| 7 | +# [invalid-name] |
| 8 | +argument-rgx=[a-z_][a-z0-9_]*$ |
| 9 | + |
| 10 | +# Allow filter and map. |
| 11 | +# [bad-builtin] |
| 12 | +bad-functions=input |
| 13 | + |
| 14 | +# We prefer docstrings, but we don't require them on all functions. |
| 15 | +# Require them only on long functions (for some value of long). |
| 16 | +# [missing-docstring] |
| 17 | +docstring-min-length=10 |
| 18 | + |
| 19 | +# No upper limit on method names. Pylint <2.1.0 has an upper limit of 30. |
| 20 | +# [invalid-name] |
| 21 | +method-rgx=[a-z_][a-z0-9_]{2,}$ |
| 22 | + |
| 23 | +# Allow module names containing a dash (but no underscore or uppercase letter). |
| 24 | +# They are whole programs, not meant to be included by another module. |
| 25 | +# [invalid-name] |
| 26 | +module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|[a-z][-0-9a-z]+)$ |
| 27 | + |
| 28 | +# Some functions don't need docstrings. |
| 29 | +# [missing-docstring] |
| 30 | +no-docstring-rgx=(run_)?main$ |
| 31 | + |
| 32 | +# We're ok with short local or global variable names. |
| 33 | +# [invalid-name] |
| 34 | +variable-rgx=[a-z_][a-z0-9_]*$ |
| 35 | + |
| 36 | +[DESIGN] |
| 37 | +# Allow more than the default 7 attributes. |
| 38 | +# [too-many-instance-attributes] |
| 39 | +max-attributes=15 |
| 40 | + |
| 41 | +[FORMAT] |
| 42 | +# Allow longer modules than the default recommended maximum. |
| 43 | +# [too-many-lines] |
| 44 | +max-module-lines=2000 |
| 45 | + |
| 46 | +[MESSAGES CONTROL] |
| 47 | +# * locally-disabled, locally-enabled: If we disable or enable a message |
| 48 | +# locally, it's by design. There's no need to clutter the Pylint output |
| 49 | +# with this information. |
| 50 | +# * logging-format-interpolation: Pylint warns about things like |
| 51 | +# ``log.info('...'.format(...))``. It insists on ``log.info('...', ...)``. |
| 52 | +# This is of minor utility (mainly a performance gain when there are |
| 53 | +# many messages that use formatting and are below the log level). |
| 54 | +# Some versions of Pylint (including 1.8, which is the version on |
| 55 | +# Ubuntu 18.04) only recognize old-style format strings using '%', |
| 56 | +# and complain about something like ``log.info('{}', foo)`` with |
| 57 | +# logging-too-many-args (Pylint supports new-style formatting if |
| 58 | +# declared globally with logging_format_style under [LOGGING] but |
| 59 | +# this requires Pylint >=2.2). |
| 60 | +# * no-else-return: Allow the perfectly reasonable idiom |
| 61 | +# if condition1: |
| 62 | +# return value1 |
| 63 | +# else: |
| 64 | +# return value2 |
| 65 | +# * unnecessary-pass: If we take the trouble of adding a line with "pass", |
| 66 | +# it's because we think the code is clearer that way. |
| 67 | +disable=locally-disabled,locally-enabled,logging-format-interpolation,no-else-return,unnecessary-pass |
| 68 | + |
| 69 | +[REPORTS] |
| 70 | +# Don't diplay statistics. Just the facts. |
| 71 | +reports=no |
| 72 | + |
| 73 | +[STRING] |
| 74 | +# Complain about |
| 75 | +# ``` |
| 76 | +# list_of_strings = [ |
| 77 | +# 'foo' # <-- missing comma |
| 78 | +# 'bar', |
| 79 | +# 'corge', |
| 80 | +# ] |
| 81 | +# ``` |
| 82 | +check-str-concat-over-line-jumps=yes |
| 83 | + |
| 84 | +[VARIABLES] |
| 85 | +# Allow unused variables if their name starts with an underscore. |
| 86 | +# [unused-argument] |
| 87 | +dummy-variables-rgx=_.* |
| 88 | + |
| 89 | +[SIMILARITIES] |
| 90 | +# Ignore imports when computing similarities. |
| 91 | +ignore-imports=yes |
0 commit comments