diff --git a/.codespell_ignore_words b/.codespell_ignore_words new file mode 100644 index 000000000..ff8047339 --- /dev/null +++ b/.codespell_ignore_words @@ -0,0 +1,4 @@ +managable +commitish +matchs +medias diff --git a/.eslintrc.yaml b/.eslintrc.yaml index c34fe2339..fae38e122 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -1,31 +1,14 @@ +parserOptions: + ecmaVersion: 2018 + overrides: - files: - - "src/octoprint/static/js/app/**" + - "src/octoprint/static/js/**.js" + - "src/octoprint/plugins/**.js" env: browser: true jquery: true - parserOptions: - ecmaVersion: 5 - rules: - es5/no-arrow-functions: error - es5/no-binary-and-octal-literals: error - es5/no-block-scoping: error - es5/no-classes: error - es5/no-computed-properties: error - es5/no-default-parameters: error - es5/no-destructuring: error - es5/no-exponentiation-operator: error - es5/no-for-of: error - es5/no-generators: error - es5/no-modules: error - es5/no-object-super: error - es5/no-rest-parameters: error - es5/no-shorthand-properties: error - es5/no-spread: error - es5/no-template-literals: error - es5/no-typeof-symbol: error - es5/no-unicode-code-point-escape: error - es5/no-unicode-regex: error + es6: true - files: - "tests/cypress/**" env: @@ -36,5 +19,4 @@ overrides: - "plugin:cypress/recommended" plugins: - - eslint-plugin-es5 - cypress diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75a53eae8..42120070c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -exclude: ^(src/octoprint/vendor/|src/octoprint/static/js/lib|src/octoprint/static/vendor|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/|versioneer.py|.*\.css|.*\.svg) +exclude: ^(src/octoprint/vendor/|src/octoprint/static/js/lib|src/octoprint/static/vendor|tests/static/js/lib|tests/util/_files|scripts/|translations/|versioneer.py|.*\.css|.*\.svg) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 @@ -54,6 +54,7 @@ repos: - id: flake8 additional_dependencies: - flake8-bugbear==22.3.20 + exclude: ^(docs/) - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.5.1 hooks: @@ -64,7 +65,10 @@ repos: - id: eslint additional_dependencies: - eslint@7.19.0 - - eslint-plugin-es5@v1.3.0 - eslint-plugin-cypress@2.11.2 files: \.js$ exclude: ^(src/octoprint/vendor/|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/) + - repo: https://github.com/codespell-project/codespell + rev: v2.1.0 + hooks: + - id: codespell diff --git a/.versioneer-lookup b/.versioneer-lookup index 66efa38d7..748f07df8 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -26,8 +26,8 @@ improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev # staging/bugfix is the branch for preparation of the 1.8.1 bugfix release # so are any bug/... branches -staging/bugfix 1.8.1 d2a9aacedacf2b582faca462d6e915f88676a3d5 pep440-dev -bug/.* 1.8.1 d2a9aacedacf2b582faca462d6e915f88676a3d5 pep440-dev +staging/bugfix 1.8.2 260a1aef11432c421246019e25b6b744abbaed60 pep440-dev +bug/.* 1.8.2 260a1aef11432c421246019e25b6b744abbaed60 pep440-dev # staging/maintenance is currently the branch for preparation of 1.8.0rc6 # so is regressionfix/... diff --git a/AUTHORS.md b/AUTHORS.md index 9646d90e8..b2eaaf086 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -169,6 +169,8 @@ date of first contribution): * [Billy Richardson](https://github.com/richardsondev) * [Christian Bianchini](https://github.com/max246) * [Kestin Goforth](https://github.com/kforth) + * [Dawid Pieper](https://github.com/dawidpieper) + * ["arrdem"](https://github.com/arrdem) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 07d92e921..c395fe028 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -10,37 +10,29 @@ thanks to everyone who contributed! * 3DPrinterOS * Al Mucci * Arnljot Arntsen - * Artillery 3D * Ash King * BigTreeTech * Boris Hussein * Brad Jackson - * BuildBee * Calvin Vette * Christian Petropolis * Christian Wolf * Christian Würthner * Christoph Sigrist - * Craig Parker * Creality3D - * David Bounds * DeltaMaker 3D Printers * Dennis Breining * Douglas Floyd * Dr. Frank Wester - * Eric Betts * Ernesto Martinez * Franziska Kunsmann - * George Robles * Greg Holloway * Hog Duske - * Itay Shem-tov * James Mackay * Jeff Green * Jeff Moe * jeffiel * Jeremy Cole - * Joshua Wills * Julian Melo * Justin Kaufman * Kaile Riser @@ -52,13 +44,15 @@ thanks to everyone who contributed! * Lefteris Lertas * LulzBot * Makespace Madrid + * Mark Greenwald * Mark Walker * Matt Van Itallie * Michael Aumock * Mike Kershaw - * Miles Flavel * Mosaic Manufacturing * Norman Jaffe + * Obico + * Ory Weaver * Peopoly * Pete Barnwell * Raise3D @@ -68,17 +62,15 @@ thanks to everyone who contributed! * Richard Michaud * Richard Stocks * Robert Gusek - * Ronald Griehsler * Sean Jensen-Grey * Sebastien Andrivet + * SimplyPrint * Stefan Krister * Steve Dougherty * Steve Thompson - * TH3D - * The Spaghetti Detective * TJ Horner * Trent Shumay * Ulrich Kempken * Yehuda Katz -and 2279 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! +and 2209 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/docs/api/files.rst b/docs/api/files.rst index 1cf439741..81367e82a 100644 --- a/docs/api/files.rst +++ b/docs/api/files.rst @@ -908,4 +908,3 @@ Upload response - (File only) Whether the file that was just uploaded was started to print (``true``) or not (``false``). If this is ``false`` but was requested to be ``true`` in the upload request, the user lacked permissions, the printer was not operational or already printing and thus the request could not be fulfilled. - diff --git a/docs/api/printerprofiles.rst b/docs/api/printerprofiles.rst index 8b802b37d..d856b4523 100644 --- a/docs/api/printerprofiles.rst +++ b/docs/api/printerprofiles.rst @@ -644,4 +644,3 @@ Profile - Tuple of (x, y) values describing the offsets of the other extruders relative to the first extruder. E.g. for a printer with two extruders, if the second extruder is offset by 20mm in the X and 25mm in the Y direction, this array will read ``[ [0.0, 0.0], [20.0, 25.0] ]`` - diff --git a/docs/api/timelapse.rst b/docs/api/timelapse.rst index e739b43ee..6a49a631d 100644 --- a/docs/api/timelapse.rst +++ b/docs/api/timelapse.rst @@ -30,7 +30,7 @@ Delete a timelapse .. http:delete:: /api/timelapse/(string:name) Delete the timelapse ``name``. - + Returns a :ref:`timelapse list ` in the response body with the updated information. @@ -283,4 +283,3 @@ For timelapse type ``timed``. - 1 - int - Seconds between individual shots - diff --git a/docs/conf.py b/docs/conf.py index f8b7fa933..9c1603677 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,4 @@ +# # OctoPrint documentation build configuration file, created by # sphinx-quickstart on Mon Dec 02 17:08:50 2013. # @@ -9,8 +10,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys import os +import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -18,9 +19,10 @@ import os sys.path.insert(0, os.path.abspath("../src/")) sys.path.append(os.path.abspath("sphinxext")) -import octoprint._version from datetime import date +import octoprint._version + year_since = 2013 year_current = date.today().year @@ -40,7 +42,7 @@ extensions = [ "sphinx.ext.napoleon", "sphinxcontrib.mermaid", "sphinx.ext.intersphinx", - "sphinx_rtd_theme" + "sphinx_rtd_theme", ] todo_include_todos = True intersphinx_mapping = { diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index e1c126dcb..0ba63e0bf 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -451,7 +451,7 @@ Use the following settings to enable or disable OctoPrint features: # whether G90/G91 also influence absolute/relative mode of extruders g90InfluencesExtruder: false - + # Replace all special characters and spaces with text equivalent to make them universally compatible. # Most OS filesystems work fine with unicode characters, but just in case you can revert to the # older behaviour by setting this to true. diff --git a/docs/configuration/yaml.rst b/docs/configuration/yaml.rst index b7b4e56af..e472dda45 100644 --- a/docs/configuration/yaml.rst +++ b/docs/configuration/yaml.rst @@ -221,4 +221,4 @@ clearer (whitespace again made visible to help track indentation): Just make sure you follow a consistent way of indenting your files -- YAML is not as strict as Python when it comes to differing indentation variants within the same file (as long as it's still valid), but consistency will help you as a lot as a human. Ideally you'll use a text editor which highlights white space characters for you (most editors can -be configured this way), this will help tremendously when editing whitespace sensitive syntax such as YAML. \ No newline at end of file +be configured this way), this will help tremendously when editing whitespace sensitive syntax such as YAML. diff --git a/docs/development/environment.rst b/docs/development/environment.rst index adb224996..6aa48b011 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -57,6 +57,7 @@ When the virtual environment is activated you can then: * run the test suite from the checked out source folder via ``pytest`` * trigger the pre-commit check suite manually from the checked out source folder via ``pre-commit run --hook-stage manual --all-files`` + * rebuild ``.css`` files from ``.less`` sources. See ``octoprint dev css:build --help`` * build the documentation running ``sphinx-build -b html . _build`` in the ``docs`` folder -- the documentation will be available in the newly created ``_build`` directory. You can simply browse it locally by opening ``index.html`` @@ -403,5 +404,3 @@ Visual Studio Code (vscode) * Saving a file will run an auto formatter and import sort * ``Ctrl+Shift+B`` can be used to run the ``build docs`` task to rebuild the documentation - - diff --git a/docs/development/virtual_printer.rst b/docs/development/virtual_printer.rst index f0d96138f..a17f2a513 100644 --- a/docs/development/virtual_printer.rst +++ b/docs/development/virtual_printer.rst @@ -200,29 +200,29 @@ There many configuration options via ``config.yaml`` for the virtual printer tha # Simulated ambient temperature in °C ambientTemperature: 21.3 - + # Response to M105 when there is a target # Placeholders: # - heater: The heater id (eg. T0, T1, B) # - actual: The actual temperature of the heater # - target: The target temperature of heater m105TargetFormatString: {heater}:{actual:.2f}/ {target:.2f} - + # Response to M105 when there is no target # Placeholders: # - heater: The heater id (eg. T0, T1, B) # - actual: The actual temperature of the heater m105NoTargetFormatString: {heater}:{actual:.2f} - + # Enable virtual EEPROM # If enabled, a file `eeprom.json` will be created in the plugin data folder # to enable settings persistence across connections. Enables M500/1/2/4 commands # And a selection of other settings commands. Responses modeled on Marlin 2.0 enable_eeprom: true - + # Support M503 support_m503: true - + # Resend ratio to simulate noise on the line resend_ratio: 0 diff --git a/docs/events/index.rst b/docs/events/index.rst index c468a1fad..a3188bd3a 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -870,4 +870,3 @@ PrinterProfileModified * ``identifier``: the identifier of the modified printer profile .. versionadded:: 1.3.12 - diff --git a/docs/images/template_plugin_types.ep b/docs/images/template_plugin_types.ep index d036b24cc..f56ea6fd3 100644 --- a/docs/images/template_plugin_types.ep +++ b/docs/images/template_plugin_types.ep @@ -306,4 +306,4 @@