From 31fb60bb2ccf2b835babf116cc095368387ae99f Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Wed, 24 Nov 2021 18:14:31 +0000 Subject: IVGCVSW-6579 Update PyArmNN to comply with inclusive language guidelines. * Update pylintconfig removing reference to black and white list. * Update tox.ini changing whitelist_externals to allowlist_externals. * Update the pyarmnn speech recognition example from 'he' to 'they'. Signed-off-by: Cathal Corbett Change-Id: I5ce3b9d6a30df6d2e9130a934741b46b594e53d2 --- python/pyarmnn/examples/speech_recognition/tests/test_decoder.py | 2 +- python/pyarmnn/pylintconfig | 9 ++------- python/pyarmnn/tox.ini | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) (limited to 'python') diff --git a/python/pyarmnn/examples/speech_recognition/tests/test_decoder.py b/python/pyarmnn/examples/speech_recognition/tests/test_decoder.py index 3b99e6504a..1db71a47b8 100644 --- a/python/pyarmnn/examples/speech_recognition/tests/test_decoder.py +++ b/python/pyarmnn/examples/speech_recognition/tests/test_decoder.py @@ -25,4 +25,4 @@ def test_decoder(test_data_folder): output_tensor = os.path.join(test_data_folder, "inf_out.npy") encoded = np.load(output_tensor) decoded_text = audio_utils.decode(encoded, labels) - assert decoded_text == "and he walkd immediately out of the apartiment by anothe" + assert decoded_text == "and they walkd immediately out of the apartiment by anothe" diff --git a/python/pyarmnn/pylintconfig b/python/pyarmnn/pylintconfig index 1f8811a4ce..f3b28d4708 100644 --- a/python/pyarmnn/pylintconfig +++ b/python/pyarmnn/pylintconfig @@ -1,15 +1,10 @@ [MASTER] -# A comma-separated list of package or module names from where C extensions may -# be loaded. Extensions are loading into the active Python interpreter and may -# run arbitrary code -extension-pkg-whitelist= - -# Add files or directories to the blacklist. They should be base names, not +# Add files or directories to the ignore list. They should be base names, not # paths. ignore=CVS,generated,_generated -# Add files or directories matching the regex patterns to the blacklist. The +# Add files or directories matching the regex patterns to the ignore list. The # regex matches against base names, not paths. ignore-patterns=_version.py diff --git a/python/pyarmnn/tox.ini b/python/pyarmnn/tox.ini index f791dba95c..be3118b07f 100644 --- a/python/pyarmnn/tox.ini +++ b/python/pyarmnn/tox.ini @@ -16,7 +16,7 @@ deps = pytest==5.2.0 more-itertools==8.10.0 recreate = True -whitelist_externals = /bin/sh +allowlist_externals = /bin/sh commands = python ./scripts/download_test_resources.py python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml -- cgit v1.2.1