Browse Source

Switch to flake8>3.8.1

Change-Id: I9c08ab3ec1ee00ca7a878dc0c9072bf67027c4fd
changes/98/727798/2
Federico Ressi 1 year ago
parent
commit
12ec87e99d
  1. 2
      linters-requirements.txt
  2. 2
      tobiko/shell/sh/_local.py
  3. 2
      tobiko/shell/sh/_path.py
  4. 2
      tobiko/shell/ssh/_client.py

2
linters-requirements.txt

@ -1,7 +1,7 @@
# pep8 and flake8 requirements
ansible-lint==4.2.0 # MIT
flake8==3.3.0 # MIT
flake8>=3.8.1 # MIT
flake8-import-order==0.12 # LGPLv3
mypy>=0.740 # MIT
pylint>=1.9,<2.5.0 # GPLv2

2
tobiko/shell/sh/_local.py

@ -66,7 +66,7 @@ class LocalExecutePathFixture(_path.ExecutePathFixture):
executable_dirs = [os.path.realpath(os.path.join(d, 'bin'))
for d in [sys.prefix, sys.exec_prefix]]
environ = os.environ
environ = dict(os.environ)
class LocalShellProcessFixture(_process.ShellProcessFixture):

2
tobiko/shell/sh/_path.py

@ -15,6 +15,8 @@
# under the License.
from __future__ import absolute_import
import typing # noqa
from oslo_log import log
import tobiko

2
tobiko/shell/ssh/_client.py

@ -198,7 +198,7 @@ def _items_from_object(obj, schema):
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
for key, value in mapping.items()
if key not in exclude}

Loading…
Cancel
Save