pylintrc 1.29 KB
Newer Older
1 2 3 4 5 6 7
[MASTER]
# neo/protocol.py does __global__ magic.
#init-hook="from neo import protocol"
# Don't validate tests, they must be rewriten anyway.
ignore=tests

[MESSAGES CONTROL]
8 9 10
# C0111 Disable "no docstring" for the moment
# C0301 Disable "Line too long" for the moment
# R0201 Disable "Method could be a function"
11
disable-msg=R0201
12 13 14 15 16 17

[DESIGN]
# Some classes are just beautiful when defining only operators & such.
min-public-methods=0
# Handler classes need to export many methods. We do define a complex API.
max-public-methods=100
18 19
# Handler methods need a big number of parameters.
max-args=10
20 21 22 23 24

[BASIC]
# Inspired by Debian's /usr/share/doc/pylint/examples/pylintrc_camelcase
module-rgx=(([a-z][a-z0-9]*)|([A-Z][a-zA-Z0-9]+))$
class-rgx=[A-Z][a-zA-Z0-9]+$
25 26
function-rgx=((_+|[a-z]))(([a-zA-Z0-9]*)|([a-z0-9_]*))$
method-rgx=((((_+|[a-z]))(([a-zA-Z0-9]*)|([a-z0-9_]*)))|(__.*__))$
27
argument-rgx=[a-z][a-z0-9_]*$
28 29 30 31
# variables can be:
# - variables ([a-z][a-z0-9_]*$)
# - method aliases (inner loop optimisation)
variable-rgx=(([a-z][a-z0-9_]*)|(((((_+|[a-z]))(([a-zA-Z0-9]*)|([a-z0-9_]*)))|(__.*__))))$
32
attr-rgx=[a-z_][a-z0-9_]*$
33 34 35 36 37 38 39
# Consts (as detected by pylint) can be:
# - functions
# - class aliases (class Bar: pass; Foo = Bar)
# - decorator functions
# - real consts
# For the moment, accept any name.
const-rgx=.*
40