Gina Häußge
fd2ece0f13
🎨 pyupgrade --py37-plus
2021-03-11 16:01:02 +01:00
Gina Häußge
a71f6fcd40
Merge branch 'maintenance' into devel
...
# Conflicts:
# .pre-commit-config.yaml
# setup.py
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/server/api/printer.py
# src/octoprint/server/api/printer_profiles.py
# src/octoprint/server/api/settings.py
# src/octoprint/util/commandline.py
2021-03-11 15:26:46 +01:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +01:00
Gina Häußge
b1596f30d9
♻️ Use flask.abort where it makes sense
...
And use a custom error handler to return json error responses on API
endpoints.
2021-03-10 21:37:51 +01:00
Gina Häußge
0fd00ef5fc
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/development/environment.rst
2021-02-17 15:38:54 +01:00
Gina Häußge
740287528a
✨ swu: New py2 specific check overlay
...
Also: compatible flag. Will allow us to flag future updates as
incompatible via the plugin repository.
2021-02-10 11:28:05 +01:00
Gina Häußge
2a6f7478c3
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/logging/__init__.py
2021-02-05 13:04:26 +01:00
Gina Häußge
5825910303
🐛 swu: actually use local pip command
...
We were only using it for prerelease channels or unstable development
versions, not always if set.
Closes #3892
2021-01-27 18:19:43 +01:00
Gina Häußge
5e620bcdfe
Merge pull request #3981 from eumiro/py36plus
...
🚀 Modernize the code to Python 3.6+
2021-01-26 10:53:45 +01:00
Miroslav Šedivý
d041e1ce97
👴 Use default super() arguments
2021-01-25 19:00:32 +01:00
Miroslav Šedivý
0308150048
📗 Compact dict creation
2021-01-25 19:00:28 +01:00
Miroslav Šedivý
35e35d92a6
💥 Use OSError as the general system-related exception
...
According to PEP 3151, OSError can be used for all system-related exceptions and thus replace IOError, EnvironmentError, socket.error, etc.
2021-01-25 18:04:47 +01:00
Gina Häußge
f7ad7d93a5
Merge branch 'maintenance' into devel
2021-01-25 16:07:48 +01:00
Gina Häußge
f2c6e99449
🚨 Disable linter for intentionally unreachable code
2021-01-25 15:50:49 +01:00
Gina Häußge
97ec0493d1
Merge branch 'maintenance' into devel
2020-12-10 14:14:22 +01:00
Gina Häußge
ffe352e61b
🐛 Fix wrong variable name
2020-12-07 14:33:13 +01:00
Gina Häußge
669660c2fb
Merge branch 'maintenance' into devel
2020-12-04 12:02:29 +01:00
cp2004
9187529ff6
💄 Improvements to software update UI
...
* Move check for updates & update all buttons to the top of the interface
* Move advanced options to collapsed section at the top of the interface
Part 2 of 2, implementing #3801
2020-11-27 11:36:25 +00:00
Gina Häußge
b8bbdbdc64
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
2020-11-10 16:10:41 +01:00
Gina Häußge
1b41ab8567
🥅 SWU: Prevent issues if no rate limit info is available
2020-11-10 12:32:52 +01:00
Gina Häußge
6a695c851a
🔖 Preparing release of 1.5.0rc1
2020-11-10 11:19:32 +01:00
Gina Häußge
5325b32cf2
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
# src/octoprint/util/__init__.py
2020-11-06 17:08:58 +01:00
Gina Häußge
3bd7004733
⚡ ️ SWU: Improve pip caller caching behaviour
...
We want to synchronize so we don't try to determine the pip caller again
and again for all registered checks that are being processed
concurrently.
2020-11-04 11:44:40 +01:00
Gina Häußge
4110287349
✨ Support central local pip command in server.pip
...
Plugin Manager, Software Update and Backup will use that if set.
Otherwise the old default of using LocalPipCaller is used.
Not exposed via the UI as this REALLY should only be used by people who
know what they are doing and the majority of users out there will never
ever have to use it.
Implements #3700
2020-11-04 11:41:19 +01:00
cp2004
065b87d694
⬆️ Upgrade FontAwesome to 5.15.1
...
This is not a breaking change, due to the inclusion of the v4-shims. All icons should aim to use fontawesome 5 styles, full guide on breaking changes can be found at:
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
I've aimed to update all icons I could find, but due to the compatibility layer if there are a couple missed, they still all work fine.
2020-10-22 20:31:23 +01:00
Gina Häußge
b73f62b433
♻️ Py3: get rid of unneeded noinspection comments & imports
2020-10-22 15:50:49 +02:00
Gina Häußge
ac347c4e06
♻️ Py3: Remove use of glob_escape & monotonic_time & mark deprecated
...
Those are natively available in Python 3.
2020-10-21 19:01:02 +02:00
Gina Häußge
e45e97f9ac
♻️ Py3: Remove past.builtins and future.utils uses
2020-10-21 18:39:52 +02:00
Gina Häußge
292aa99543
♻️ Py3: Remove Py2 specific imports
2020-10-21 18:13:39 +02:00
Gina Häußge
61a08d26b2
Merge branch 'maintenance' into devel
2020-10-21 14:35:24 +02:00
Gina Häußge
0d90bb9e8f
📝 New SWU settings & config CLI
2020-10-20 12:07:56 +02:00
Gina Häußge
6c18931153
✨ SWU: Support Github API key to work around rate limits
...
If someone needs to check updates more often than the rate limiting with
anonymous access allows, they can now configured a personal access token
from Github via `plugins.softwareupdate.credentials.github`. This
setting is and will not be exposed via the UI.
See #3777
2020-10-19 15:08:48 +02:00
Gina Häußge
688188777f
🚸 SWU: Clear message on rate limit exceed
...
See #3777
2020-10-19 14:45:23 +02:00
Gina Häußge
e7d037d3d4
🐛 SWU: Fix issue with check config persistence from plugins
...
If we want to be able to in-place overlay the effective config, we MUST
do a deepcopy of the default or we'll actually operate on the default,
effectively leading to any changes to plugin check configs to be cleaned
up from the config file.
Closes #3765
Closes #3767
2020-10-14 12:24:45 +02:00
Gina Häußge
446e1b7ece
🐛 Fix issues pointed out by flake-bugbear
2020-10-08 11:50:24 +02:00
Gina Häußge
100764b03e
🎨 Remove some left-over pragma headers & future imports
2020-10-07 21:37:22 +02:00
Gina Häußge
c715751bc6
Merge branch 'maintenance' into devel
2020-10-07 21:19:05 +02:00
Gina Häußge
d3cf2a8e35
🎨 Some additional pre-commit checks
2020-10-07 21:16:48 +02:00
Gina Häußge
18e6bfc7f8
Merge branch 'maintenance' into devel
...
# Conflicts:
# .github/workflows/build.yml
# docs/conf.py
# docs/development/environment.rst
# docs/sphinxext/codeblockext.py
# docs/sphinxext/onlineinclude.py
# setup.py
# src/octoprint/access/groups.py
# src/octoprint/access/permissions.py
# src/octoprint/access/users.py
# src/octoprint/cli/__init__.py
# src/octoprint/cli/analysis.py
# src/octoprint/cli/client.py
# src/octoprint/cli/config.py
# src/octoprint/cli/plugins.py
# src/octoprint/cli/server.py
# src/octoprint/cli/user.py
# src/octoprint/environment.py
# src/octoprint/events.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/filemanager/analysis.py
# src/octoprint/filemanager/destinations.py
# src/octoprint/filemanager/storage.py
# src/octoprint/filemanager/util.py
# src/octoprint/logging/__init__.py
# src/octoprint/logging/handlers.py
# src/octoprint/plugin/__init__.py
# src/octoprint/plugin/core.py
# src/octoprint/plugins/action_command_notification/__init__.py
# src/octoprint/plugins/action_command_prompt/__init__.py
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/backup/__init__.py
# src/octoprint/plugins/corewizard/__init__.py
# src/octoprint/plugins/corewizard/subwizards.py
# src/octoprint/plugins/discovery/__init__.py
# src/octoprint/plugins/errortracking/__init__.py
# src/octoprint/plugins/gcodeviewer/__init__.py
# src/octoprint/plugins/logging/__init__.py
# src/octoprint/plugins/pi_support/__init__.py
# src/octoprint/plugins/softwareupdate/cli.py
# src/octoprint/plugins/softwareupdate/updaters/single_file_plugin.py
# src/octoprint/plugins/softwareupdate/updaters/sleep_a_bit.py
# src/octoprint/plugins/softwareupdate/version_checks/always_current.py
# src/octoprint/plugins/softwareupdate/version_checks/bitbucket_commit.py
# src/octoprint/plugins/softwareupdate/version_checks/github_release.py
# src/octoprint/plugins/softwareupdate/version_checks/httpheader.py
# src/octoprint/plugins/softwareupdate/version_checks/jsondata.py
# src/octoprint/plugins/softwareupdate/version_checks/never_current.py
# src/octoprint/plugins/softwareupdate/version_checks/pypi_release.py
# src/octoprint/plugins/tracking/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/profile.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/system.py
# src/octoprint/server/api/users.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/tornado.py
# src/octoprint/server/util/webassets.py
# src/octoprint/settings.py
# src/octoprint/slicing/__init__.py
# src/octoprint/timelapse.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
# src/octoprint/util/commandline.py
# src/octoprint/util/connectivity.py
# src/octoprint/util/fixes.py
# src/octoprint/util/gcodeInterpreter.py
# src/octoprint/util/jinja.py
# src/octoprint/util/json/__init__.py
# src/octoprint/util/net.py
# src/octoprint_client/__init__.py
# src/octoprint_setuptools/__init__.py
# tests/filemanager/test_filemanager.py
# tests/filemanager/test_localstorage.py
# tests/plugin/test_core.py
# tests/plugin/test_settings.py
# tests/plugin/test_types_blueprint.py
# tests/plugin/test_types_settings.py
# tests/server/api/test_system.py
# tests/server/util/test_flask.py
# tests/server/util/test_tornado.py
# tests/slicing/test_slicingmanager.py
# tests/test_daemon.py
# tests/timelapse/test_timelapse_helpers.py
# tests/util/test_comm.py
# tests/util/test_file_helpers.py
# tests/util/test_pip.py
# tests/util/test_repeated_timer.py
# tests/util/test_resettable_timer.py
# versioneer.py
2020-10-07 21:08:44 +02:00
Gina Häußge
6b44909f21
🎨 Add prettier for js, less, yaml, json, ...
2020-10-07 18:53:49 +02:00
Gina Häußge
b5be8f3eae
🎨 Add codemods to pre-commit, fix flake8
2020-10-07 16:27:11 +02:00
Gina Häußge
cae6730ea8
🎨 EOF/trailing whitespace/TOML&YAML check
...
And armed and documented pre-commit
2020-10-07 13:45:49 +02:00
Gina Häußge
fbfb34df58
🎨 Switch to use of isort
2020-10-07 13:15:52 +02:00
Gina Häußge
1f93b2355a
🎨 Switch to black formatting
2020-10-07 13:13:06 +02:00
Gina Häußge
af60fd6428
🎨 Change dict constructors to literals
2020-10-06 14:57:47 +02:00
Gina Häußge
e92e69b35b
⚡ ️ in_place option for dict_merge
...
Thanks for the idea, @amrsoll
2020-09-28 15:05:37 +02:00
Gina Häußge
0949975fcd
Merge pull request #3750 from frenck/frenck-2020-0003
...
Cleanup encoding pragma headers and future imports
2020-09-28 11:46:41 +02:00
Franck Nijhof
025fb23fed
Cleanup encoding pragma headers and future imports
2020-09-25 22:56:25 +02:00
Gina Häußge
87102407c7
✨ SWU: Fix CLI
...
As mentioned in
https://community.octoprint.org/t/24481
2020-09-25 15:42:47 +02:00
Gina Häußge
c0495d22c9
🐛 Remove default submit from settings forms
...
We only want explicitly defined form behaviour.
Otherwise stuff might be triggered by hitting
the enter key that should not be triggered.
Closes #3740
2020-09-23 11:25:32 +02:00