Skip to content

Commit 4dc7ea5

Browse files
authored
Fix typos discovered by codespell (platformio#5078)
* Fix typos discovered by codespell * codespell-project/actions-codespell@v2
1 parent 1be6e10 commit 4dc7ea5

File tree

11 files changed

+17
-13
lines changed

11 files changed

+17
-13
lines changed

.github/workflows/core.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
submodules: "recursive"
1919

20+
- uses: codespell-project/actions-codespell@v2
21+
with:
22+
ignore_words_list: ans,homestate,ser
23+
2024
- name: Set up Python ${{ matrix.python-version }}
2125
uses: actions/setup-python@v5
2226
with:

platformio/commands/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ def settings_set(ctx, name, value):
7676
@click.pass_context
7777
def settings_reset(ctx):
7878
app.reset_settings()
79-
click.secho("The settings have been reseted!", fg="green")
79+
click.secho("The settings have been reset!", fg="green")
8080
ctx.invoke(settings_get)

platformio/package/commands/uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def uninstall_project_env_dependencies(project_env, options=None):
111111
uninstalled_conds.append(
112112
_uninstall_project_env_custom_tools(project_env, options)
113113
)
114-
# custom ibraries
114+
# custom libraries
115115
if options.get("libraries"):
116116
uninstalled_conds.append(
117117
_uninstall_project_env_custom_libraries(project_env, options)

platformio/package/commands/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def update_project_env_dependencies(project_env, options=None):
110110
# custom tools
111111
if options.get("tools"):
112112
updated_conds.append(_update_project_env_custom_tools(project_env, options))
113-
# custom ibraries
113+
# custom libraries
114114
if options.get("libraries"):
115115
updated_conds.append(_update_project_env_custom_libraries(project_env, options))
116116
# declared dependencies

platformio/platform/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_clsname(name):
3333

3434
@staticmethod
3535
def load_platform_module(name, path):
36-
# backward compatibiility with the legacy dev-platforms
36+
# backward compatibility with the legacy dev-platforms
3737
sys.modules["platformio.managers.platform"] = base
3838
try:
3939
return load_python_module("platformio.platform.%s" % name, path)

platformio/project/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def _re_interpolation_handler(self, parent_section, parent_option, match):
347347
if section is None:
348348
if option in self.BUILTIN_VARS:
349349
return self.BUILTIN_VARS[option]()
350-
# SCons varaibles
350+
# SCons variables
351351
return f"${{{option}}}"
352352

353353
# handle system environment variables

platformio/project/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def load_build_metadata(project_dir, env_or_envs, cache=False, build_type=None):
158158
return result or None
159159

160160

161-
# Backward compatibiility with dev-platforms
161+
# Backward compatibility with dev-platforms
162162
load_project_ide_data = load_build_metadata
163163

164164

platformio/project/integration/tpls/netbeans/nbproject/private/launcher.properties.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# common.symbolFiles=<Symbol Files loaded by debugger>
1818
# (This value is overwritten by a launcher specific symbolFiles value if the latter exists)
1919
#
20-
# In runDir, symbolFiles and env fields you can use these macroses:
20+
# In runDir, symbolFiles and env fields you can use these macros:
2121
# ${PROJECT_DIR} - project directory absolute path
2222
# ${OUTPUT_PATH} - linker output path (relative to project directory path)
2323
# ${OUTPUT_BASENAME}- linker output filename

platformio/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ def _reset(self):
6565

6666

6767
class throttle:
68-
def __init__(self, threshhold):
69-
self.threshhold = threshhold # milliseconds
68+
def __init__(self, threshold):
69+
self.threshold = threshold # milliseconds
7070
self.last = 0
7171

7272
def __call__(self, func):
7373
@functools.wraps(func)
7474
def wrapper(*args, **kwargs):
7575
diff = int(round((time.time() - self.last) * 1000))
76-
if diff < self.threshhold:
77-
time.sleep((self.threshhold - diff) * 0.001)
76+
if diff < self.threshold:
77+
time.sleep((self.threshold - diff) * 0.001)
7878
self.last = time.time()
7979
return func(*args, **kwargs)
8080

tests/commands/pkg/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_remove_project_unused_libdeps(
340340
),
341341
]
342342

343-
# manually remove from cofiguration file
343+
# manually remove from configuration file
344344
config.set("env:baremetal", "lib_deps", ["bblanchon/ArduinoJson@^5"])
345345
config.save()
346346
result = clirunner.invoke(

0 commit comments

Comments
 (0)