From d3b7508bd55e4a8b62e6ce70d3d9cb4cf1770dc1 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 3 Jul 2022 20:16:33 +1000 Subject: [PATCH] docs: Fix a few typos (#4340) There are small typos in: - platformio/test/helpers.py - platformio/util.py - tests/project/test_savedeps.py Fixes: - Should read `specified` rather than `sepcified`. - Should read `overridden` rather than `overriden`. - Should read `compatibility` rather than `compatiblty`. --- platformio/test/helpers.py | 2 +- platformio/util.py | 2 +- tests/project/test_savedeps.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platformio/test/helpers.py b/platformio/test/helpers.py index d4364ee5..908173d0 100644 --- a/platformio/test/helpers.py +++ b/platformio/test/helpers.py @@ -43,7 +43,7 @@ def list_test_suites(project_config, environments, filters, ignores): # filter and ignore patterns patterns = dict(filter=list(filters), ignore=list(ignores)) for key, value in patterns.items(): - if value: # overriden from CLI + if value: # overridden from CLI continue patterns[key].extend( # pylint: disable=unnecessary-dict-index-lookup project_config.get(f"env:{env_name}", f"test_{key}", []) diff --git a/platformio/util.py b/platformio/util.py index 5a8b1923..f235c2ee 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -34,7 +34,7 @@ from platformio.proc import exec_command # pylint: enable=unused-import # also export list_serial_ports as get_serialports to be -# backward compatiblty with arduinosam versions 3.9.0 to 3.5.0 (and possibly others) +# backward compatibility with arduinosam versions 3.9.0 to 3.5.0 (and possibly others) get_serialports = get_serial_ports diff --git a/tests/project/test_savedeps.py b/tests/project/test_savedeps.py index 9740ce71..2a16511d 100644 --- a/tests/project/test_savedeps.py +++ b/tests/project/test_savedeps.py @@ -54,7 +54,7 @@ def test_save_libraries(tmp_path): PackageSpec("https://github.com/nanopb/nanopb.git"), ] - # add to the sepcified environment + # add to the specified environment save_project_dependencies( str(project_dir), specs, scope="lib_deps", action="add", environments=["debug"] ) @@ -140,7 +140,7 @@ def test_save_tools(tmp_path): PackageSpec("platformio/tool-esptoolpy"), ] - # add to the sepcified environment + # add to the specified environment save_project_dependencies( str(project_dir), specs,