From aeb86b62a8af691d6228993e36e3212636df4af6 Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Nov 02 2020 02:11:10 +0000 Subject: Fix Jenkinks tests Fail was caused by flake8 check. It complained about specific import statement. As it can not be removed, without harm functionality, ignoring the line for checkers. Signed-off-by: Ondrej Nosek --- diff --git a/pyrpkg/layout/__init__.py b/pyrpkg/layout/__init__.py index 8055d52..1e34df1 100644 --- a/pyrpkg/layout/__init__.py +++ b/pyrpkg/layout/__init__.py @@ -11,8 +11,8 @@ from pyrpkg.errors import LayoutError from .base import MetaLayout -from .layouts import (DistGitLayout, IncompleteLayout, RetiredLayout, - SRPMLayout) # noqa +from .layouts import (DistGitLayout, IncompleteLayout, # noqa: F401 + RetiredLayout, SRPMLayout) def build(path): diff --git a/tox.ini b/tox.ini index 9b09e3b..f3be666 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,6 @@ envlist = py27,py36,py37,flake8,doc skip_install = True parallel_show_output = True basepython= - py26: {env:TOXPYTHON:python2.6} py27: {env:TOXPYTHON:python2.7} py36: {env:TOXPYTHON:python3.6} py37: {env:TOXPYTHON:python3.7} @@ -24,9 +23,11 @@ setenv= PYCURL_SSL_LIBRARY=openssl [testenv:flake8] +deps = flake8 commands = python -m flake8 pyrpkg/ tests/ [testenv:flake8python2] +deps = flake8 commands = python -m flake8 pyrpkg/ tests/