mirror of https://github.com/ansible/ansible.git
Code cleanup for test infrastructure. (#59046)
* Remove useless object inheritance in test code. * Remove unnecessary pass statements from test code. * Comment on why certain pylint rules are ignored. * Add more pylint test contexts. * Fix import order. * Remove unused variables. * Remove unnecessary pass statement. * Fix bad continuations. * Remove unnecessary elif. * Allow legitimate broad except statements. * Allow legitimate protected access. * Clean up names to make pylint pass.pull/59052/head
parent
8c55a9c70b
commit
6645054329
@ -0,0 +1,40 @@
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
disable=
|
||||
too-few-public-methods,
|
||||
too-many-arguments,
|
||||
too-many-branches,
|
||||
too-many-instance-attributes,
|
||||
too-many-lines,
|
||||
too-many-locals,
|
||||
too-many-nested-blocks,
|
||||
too-many-return-statements,
|
||||
too-many-statements,
|
||||
missing-docstring,
|
||||
unused-import, # pylint does not understand PEP 484 type hints
|
||||
consider-using-dict-comprehension, # requires Python 2.6, which we still support
|
||||
consider-using-set-comprehension, # requires Python 2.6, which we still support
|
||||
|
||||
[BASIC]
|
||||
|
||||
bad-names=foo,
|
||||
bar,
|
||||
baz,
|
||||
toto,
|
||||
tutu,
|
||||
tata,
|
||||
_,
|
||||
|
||||
good-names=i,
|
||||
j,
|
||||
k,
|
||||
f,
|
||||
e,
|
||||
ex,
|
||||
Run,
|
||||
C,
|
||||
__metaclass__,
|
||||
|
||||
module-rgx=[a-z_][a-z0-9_-]{2,40}$
|
||||
method-rgx=[a-z_][a-z0-9_]{2,40}$
|
||||
function-rgx=[a-z_][a-z0-9_]{2,40}$
|
Loading…
Reference in New Issue