diff options
author | Shreenidhi Shedi <53473811+sshedi@users.noreply.github.com> | 2021-09-01 19:53:55 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 09:23:55 -0500 |
commit | 58c2de4c97de6cfa6edbf5319641f2ef71284895 (patch) | |
tree | 3f8806eeb1e61a408f85f48b9a07d85b981acf50 /tests | |
parent | 76cff793840be63a69a74293170122c189ebaead (diff) | |
download | vyos-cloud-init-58c2de4c97de6cfa6edbf5319641f2ef71284895.tar.gz vyos-cloud-init-58c2de4c97de6cfa6edbf5319641f2ef71284895.zip |
Fix `make style-check` errors (#1000)
Using flake8 inplace of pyflakes
Renamed run-pyflakes -> run-flake8
Changed target name to flake8 in Makefile
With pyflakes we can't suppress warnings/errors in few required places.
flake8 is flexible in that regard. Hence using flake8 seems to be a
better choice here.
flake8 does the job of pep8 anyway.
So, removed pep8 target from Makefile along with tools/run-pep8 script.
Included setup.py in flake8 checks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests/clouds.py | 2 | ||||
-rw-r--r-- | tests/integration_tests/instances.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index f2362b5d..32fdc91e 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -28,7 +28,7 @@ from tests.integration_tests.instances import ( from tests.integration_tests.util import emit_dots_on_travis try: - from typing import Optional + from typing import Optional # noqa: F401 except ImportError: pass diff --git a/tests/integration_tests/instances.py b/tests/integration_tests/instances.py index 055ec758..63e0e630 100644 --- a/tests/integration_tests/instances.py +++ b/tests/integration_tests/instances.py @@ -13,7 +13,9 @@ from tests.integration_tests import integration_settings try: from typing import TYPE_CHECKING if TYPE_CHECKING: - from tests.integration_tests.clouds import IntegrationCloud + from tests.integration_tests.clouds import ( # noqa: F401 + IntegrationCloud + ) except ImportError: pass |