From 0a6cd9da87d03dad329fea16744e0906c1be326e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 31 Mar 2015 09:24:58 +0100 Subject: [PATCH] Switch to the `SaltPyLint` library. Disable `E8402`. When merging forward, **ignore this commit**. --- .pylintrc | 6 ++++-- .testing.pylintrc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index bf8e07fd8d32..544e985e2125 100644 --- a/.pylintrc +++ b/.pylintrc @@ -27,7 +27,7 @@ persistent=yes # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. -load-plugins=salttesting.pylintplugins.pep8,salttesting.pylintplugins.pep263,salttesting.pylintplugins.strings +load-plugins=saltpylint.pep8,saltpylint.pep263,saltpylint.strings [MESSAGES CONTROL] @@ -42,7 +42,8 @@ load-plugins=salttesting.pylintplugins.pep8,salttesting.pylintplugins.pep263,sal # multiple time (only on the command line, not in the configuration file where # it should appear only once). disable=W0142, - C0330 + C0330, + E8402 # E8121, # E8122, # E8123, @@ -58,6 +59,7 @@ disable=W0142, # E812* All PEP8 E12* # E8501 PEP8 line too long # C0330 (bad-continuation) +# E8402 module level import not at top of file [REPORTS] diff --git a/.testing.pylintrc b/.testing.pylintrc index 86a2c467ec14..e3705613ebf2 100644 --- a/.testing.pylintrc +++ b/.testing.pylintrc @@ -14,7 +14,7 @@ init-hook=" # Pickle collected data for later comparisons. persistent=no -load-plugins=salttesting.pylintplugins.pep8,salttesting.pylintplugins.pep263,salttesting.pylintplugins.strings +load-plugins=saltpylint.pep8,saltpylint.pep263,saltpylint.strings [MESSAGES CONTROL] @@ -74,7 +74,8 @@ disable=R, E8128, E8129, E8131, - E8265 + E8265, + E8402 # Disabled: # R* [refactoring suggestions & reports] @@ -112,6 +113,7 @@ disable=R, # E812* All PEP8 E12* # E8265 PEP8 E265 - block comment should start with "# " # E8501 PEP8 line too long +# E8402 module level import not at top of file [REPORTS]