aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2021-11-24 18:14:31 +0000
committerKeithARM <keith.davis@arm.com>2021-12-09 09:30:38 +0000
commit31fb60bb2ccf2b835babf116cc095368387ae99f (patch)
tree74323814f86e1deb123a5953352b524c4d18f724 /python
parent17d34da9efab1e515b29755811b7ad7597aacb79 (diff)
downloadarmnn-31fb60bb2ccf2b835babf116cc095368387ae99f.tar.gz
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 <cathal.corbett@arm.com> Change-Id: I5ce3b9d6a30df6d2e9130a934741b46b594e53d2
Diffstat (limited to 'python')
-rw-r--r--python/pyarmnn/examples/speech_recognition/tests/test_decoder.py2
-rw-r--r--python/pyarmnn/pylintconfig9
-rw-r--r--python/pyarmnn/tox.ini2
3 files changed, 4 insertions, 9 deletions
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