From 5a4cae6526fa2e9413d5758fa0b8e122afc36207 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Fri, 23 Apr 2021 18:13:37 +0100 Subject: [PATCH 1/3] Set pylint invalid-name disables for the other names we need to have specific cases --- pyvlx/api/frames/frame_error_notification.py | 1 + pyvlx/api/frames/frame_get_all_nodes_information.py | 3 ++- pyvlx/api/frames/frame_get_node_information.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyvlx/api/frames/frame_error_notification.py b/pyvlx/api/frames/frame_error_notification.py index f1a0e376..df1c08a4 100644 --- a/pyvlx/api/frames/frame_error_notification.py +++ b/pyvlx/api/frames/frame_error_notification.py @@ -7,6 +7,7 @@ class ErrorType(Enum): + # pylint: disable=invalid-name """Enum class for error types.""" NotFurtherDefined = 0 diff --git a/pyvlx/api/frames/frame_get_all_nodes_information.py b/pyvlx/api/frames/frame_get_all_nodes_information.py index a4c4ef20..d2ed333a 100644 --- a/pyvlx/api/frames/frame_get_all_nodes_information.py +++ b/pyvlx/api/frames/frame_get_all_nodes_information.py @@ -23,9 +23,10 @@ def __init__(self): class AllNodesInformationStatus(Enum): + # pylint: disable=invalid-name """Enum for node information status.""" - OK = 0 # pylint: disable=invalid-name + OK = 0 Error_System_Table_Empty = 1 diff --git a/pyvlx/api/frames/frame_get_node_information.py b/pyvlx/api/frames/frame_get_node_information.py index f27b5963..800d9e98 100644 --- a/pyvlx/api/frames/frame_get_node_information.py +++ b/pyvlx/api/frames/frame_get_node_information.py @@ -36,9 +36,10 @@ def __str__(self): class NodeInformationStatus(Enum): + # pylint: disable=invalid-name """Enum for node information status.""" - OK = 0 # pylint: disable=invalid-name + OK = 0 Error_Request_Rejected = 1 Error_Invalid_Node_Index = 2 From 8edc0bb32cc284834721a3998ef36cbb31d5f634 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Fri, 23 Apr 2021 18:14:03 +0100 Subject: [PATCH 2/3] Remove duplicate after_success --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9356f2c6..37a00ca4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,6 @@ cache: - $HOME/.cache/pip language: python script: travis_wait tox -after_success: coveralls install: - sudo apt-get update -q From a2b3024030a4bf1c255f629954ca104224a0eb05 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Fri, 23 Apr 2021 18:14:17 +0100 Subject: [PATCH 3/3] Whitelist usage of make in tox --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 8e72573e..36d9953d 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,7 @@ deps = pydocstyle pytest pytest-cov +whitelist_externals = make [testenv:flake8] basepython = python3