diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index a269c9dc4..da2a4a709 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -387,7 +387,7 @@ class PluginInfo(object): @property def hooks(self): """ - Hooks provided by the plugin. Will be taken from the hooks attribute of the plugin module as defiend in + Hooks provided by the plugin. Will be taken from the hooks attribute of the plugin module as defined in :attr:`attr_hooks` if available, otherwise an empty dictionary is returned. Returns: diff --git a/src/octoprint/plugins/discovery/__init__.py b/src/octoprint/plugins/discovery/__init__.py index 50d8fad7b..51ce72ed5 100644 --- a/src/octoprint/plugins/discovery/__init__.py +++ b/src/octoprint/plugins/discovery/__init__.py @@ -211,7 +211,7 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin, def zeroconf_unregister(self, reg_type, port=None): """ - Unregisteres a previously registered Zeroconf/Bonjour/Avahi service identified by service and port. + Unregisters a previously registered Zeroconf/Bonjour/Avahi service identified by service and port. :param reg_type: the type of the service to be unregistered :param port: the port of the service to be unregistered, defaults to OctoPrint's (public) port if not given diff --git a/src/octoprint/printer/estimation.py b/src/octoprint/printer/estimation.py index 537760a8f..7ee17ac0f 100644 --- a/src/octoprint/printer/estimation.py +++ b/src/octoprint/printer/estimation.py @@ -69,7 +69,7 @@ class PrintTimeEstimator(object): but no intelligent estimate yet, we'll use that for the next step. Otherwise, up to a certain percentage in the print we do a percentage based weighing of the statistical data and the intelligent estimate - the closer to the beginning of the print, the more precedence for the statistical - data, the closer to the cut off point, the more precendence for the intelligent estimate. This + data, the closer to the cut off point, the more precedence for the intelligent estimate. This is our preliminary total print time. 3. If the total print time is set, we do a sanity check for it. Based on the total print time estimate and the time we already spent printing, we calculate at what percentage we SHOULD be diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 19bbdfe16..4e8951a42 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -286,7 +286,7 @@ class Server(object): ### open port and prevent us from firing up Tornado later. ### ### The intermediary server's socket should have the CLOSE_EXEC flag (or its equivalent) set where possible, but - ### we can only do that if fcntl is availabel or we are on Windows, so better safe than sorry. + ### we can only do that if fcntl is available or we are on Windows, so better safe than sorry. ### ### See also issues #2035 and #2090 diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index a941ab558..cb6a1c089 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -106,7 +106,7 @@ def pluginCommand(name): return response return NO_CONTENT except Exception: - logging.getLogger(__name__).exception("Error while excuting SimpleApiPlugin {}".format(name), + logging.getLogger(__name__).exception("Error while executing SimpleApiPlugin {}".format(name), extra=dict(plugin=name)) return abort(500) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index d04e403f8..a07c5a6ac 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -71,7 +71,7 @@ class RequestlessExceptionLoggingMixin(tornado.web.RequestHandler): class CorsSupportMixin(tornado.web.RequestHandler): """ `tornado.web.RequestHandler `_ mixin that - makes sure to set CORS headers similarily to the Flask backed API endpoints. + makes sure to set CORS headers similarly to the Flask backed API endpoints. """ ENABLE_CORS = False diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 1dcdcd830..7e6bff899 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -1232,7 +1232,7 @@ class Settings(object): self._logger.info("Migrated {} action to server.commands.{}".format(action, migrate_to)) to_delete.append(index) - self._logger.info("Deleting {} action from configured system commands, superseeded by server.commands.{}".format(action, migrate_to)) + self._logger.info("Deleting {} action from configured system commands, superseded by server.commands.{}".format(action, migrate_to)) for index in reversed(to_delete): actions.pop(index) diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 6b2c22262..5b28d3b53 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -655,7 +655,7 @@ $(function() { } } - // handler for any explicitely provided callbacks + // handler for any explicitly provided callbacks var callbackHandler = function() { if (!callback) return; try { diff --git a/src/octoprint/templates/tabs/timelapse.jinja2 b/src/octoprint/templates/tabs/timelapse.jinja2 index 6f419b46e..d80797330 100644 --- a/src/octoprint/templates/tabs/timelapse.jinja2 +++ b/src/octoprint/templates/tabs/timelapse.jinja2 @@ -26,7 +26,7 @@ {{ _('sec') }} - {{ _('OctoPrint will rate limit snapshots to this minimum interval. This is to prevent against performance issues with vase mode/continous z prints.') }} + {{ _('OctoPrint will rate limit snapshots to this minimum interval. This it to prevent against performance issues with vase mode/continuous z prints.') }} diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 78b76da93..d8d708bf3 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -2708,11 +2708,11 @@ class MachineCom(object): _recoverable_communication_errors = ("no line number with checksum", "missing linenumber") - _resend_request_communication_errors = ("line number", # since this error class get's checked after recoverable + _resend_request_communication_errors = ("line number", # since this error class gets checked after recoverable # communication errors, we can use this broad term here - "linenumber", # since this error class get's checked after recoverable + "linenumber", # since this error class gets checked after recoverable # communication errors, we can use this broad term here - "checksum", # since this error class get's checked after recoverable + "checksum", # since this error class gets checked after recoverable # communication errors, we can use this broad term here "format error", "expected line")