style: Fix E100 and E202 errors reported by pycodestyle

This commit is contained in:
Adrien Vergé 2017-12-07 14:02:07 +01:00
parent a92743c8ca
commit f713dc8be2
4 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@ universal = 1
[flake8] [flake8]
import-order-style = pep8 import-order-style = pep8
application-import-names = yamllint
[build_sphinx] [build_sphinx]
all-files = 1 all-files = 1

View File

@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from tests.common import RuleTestCase from tests.common import RuleTestCase
from yamllint.parser import token_or_comment_generator, Comment from yamllint.parser import token_or_comment_generator, Comment
from yamllint.rules.indentation import check from yamllint.rules.indentation import check

View File

@ -30,10 +30,10 @@ try:
except AssertionError: except AssertionError:
import unittest2 as unittest import unittest2 as unittest
from yamllint import cli
from tests.common import build_temp_workspace from tests.common import build_temp_workspace
from yamllint import cli
@unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported') @unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported')
class CommandLineTestCase(unittest.TestCase): class CommandLineTestCase(unittest.TestCase):

View File

@ -27,11 +27,11 @@ try:
except AssertionError: except AssertionError:
import unittest2 as unittest import unittest2 as unittest
from tests.common import build_temp_workspace
from yamllint import cli from yamllint import cli
from yamllint import config from yamllint import config
from tests.common import build_temp_workspace
class SimpleConfigTestCase(unittest.TestCase): class SimpleConfigTestCase(unittest.TestCase):
def test_parse_config(self): def test_parse_config(self):