Switch to flake8>3.8.1
Change-Id: I9c08ab3ec1ee00ca7a878dc0c9072bf67027c4fd
This commit is contained in:
parent
633e91fad6
commit
12ec87e99d
|
@ -1,7 +1,7 @@
|
||||||
# pep8 and flake8 requirements
|
# pep8 and flake8 requirements
|
||||||
|
|
||||||
ansible-lint==4.2.0 # MIT
|
ansible-lint==4.2.0 # MIT
|
||||||
flake8==3.3.0 # MIT
|
flake8>=3.8.1 # MIT
|
||||||
flake8-import-order==0.12 # LGPLv3
|
flake8-import-order==0.12 # LGPLv3
|
||||||
mypy>=0.740 # MIT
|
mypy>=0.740 # MIT
|
||||||
pylint>=1.9,<2.5.0 # GPLv2
|
pylint>=1.9,<2.5.0 # GPLv2
|
||||||
|
|
|
@ -66,7 +66,7 @@ class LocalExecutePathFixture(_path.ExecutePathFixture):
|
||||||
|
|
||||||
executable_dirs = [os.path.realpath(os.path.join(d, 'bin'))
|
executable_dirs = [os.path.realpath(os.path.join(d, 'bin'))
|
||||||
for d in [sys.prefix, sys.exec_prefix]]
|
for d in [sys.prefix, sys.exec_prefix]]
|
||||||
environ = os.environ
|
environ = dict(os.environ)
|
||||||
|
|
||||||
|
|
||||||
class LocalShellProcessFixture(_process.ShellProcessFixture):
|
class LocalShellProcessFixture(_process.ShellProcessFixture):
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
import typing # noqa
|
||||||
|
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
|
|
||||||
import tobiko
|
import tobiko
|
||||||
|
|
|
@ -198,7 +198,7 @@ def _items_from_object(obj, schema):
|
||||||
|
|
||||||
|
|
||||||
def exclude_mapping_items(mapping, exclude):
|
def exclude_mapping_items(mapping, exclude):
|
||||||
# Exclude parameters that are already in target dictionary
|
"""Exclude parameters that are already in target dictionary"""
|
||||||
return {key: value
|
return {key: value
|
||||||
for key, value in mapping.items()
|
for key, value in mapping.items()
|
||||||
if key not in exclude}
|
if key not in exclude}
|
||||||
|
|
Loading…
Reference in New Issue