GitHub Nightly Merge Action
6cbd1df8e0
Merge branch 'maintenance' into devel
2023-01-18 00:12:58 +00:00
Gina Häußge
20c1a408c4
✅ Add tests for deprecation removal w/ overlays
2023-01-17 16:47:39 +01:00
Gina Häußge
06e32c211f
✅ Add tests for path update callbacks
2023-01-17 16:37:03 +01:00
Gina Häußge
58e1556eb0
✅ Add test for octoprint.settings._paths
2023-01-17 16:12:20 +01:00
Gina Häußge
c0c9bf0ea5
Merge branch 'maintenance' into devel
2022-04-05 14:50:10 +02:00
Gina Häußge
f4b4f50cfd
🐛 Fix handling of invalid intermittend values
...
We not only ignore None values on our subkey paths, we ignore
anything that isn't a dict we can further level down in.
Closes #4479
2022-04-04 19:02:44 +02:00
Gina Häußge
fc1c4da261
Merge branch 'maintenance' into devel
2022-03-16 11:53:58 +01:00
Gina Häußge
3816c95678
🐛 Fix get_by_path for empty default dicts & local keys
...
Closes #4458
2022-03-15 14:36:55 +01:00
GitHub Nightly Merge Action
caa8962c36
Merge branch 'maintenance' into devel
2022-03-03 00:11:14 +00:00
Gina Häußge
2560712dd6
🐛 Fix handling of empty config subtrees
2022-03-02 10:49:37 +01:00
Gina Häußge
e83adf3978
Merge branch 'maintenance' into devel
2022-02-28 15:16:06 +01:00
Gina Häußge
dc085583bc
💚 Fix a test after changing test data
2022-02-23 17:20:35 +01:00
Gina Häußge
770131e1d8
✅ Add more chainmap tests
2022-02-23 17:10:00 +01:00
Gina Häußge
a02dc82fb5
✅ Switch SettingsTest to use overlay
2022-02-23 16:41:17 +01:00
Gina Häußge
581ce02504
Merge branch 'maintenance' into devel
2022-02-22 17:49:09 +01:00
Gina Häußge
5e7ffd1b15
🐛 Fix a settings behaviour bug
2022-02-17 15:09:09 +01:00
Gina Häußge
30161e98b5
Merge branch 'maintenance' into devel
2022-02-15 14:54:44 +01:00
Flaviu Tamas and Gina Häußge
16f1e939c6
⚡ settings: reimplement storage chainmap (#4236 )
...
* settings: reimplement storage chainmap
This implementation is mostly compatible with the previous one, but in
my opinion is much easier to read and much easier to reason about.
The areas of incompatiblity are, in my opinion, bugs that have been
fixed.
* 💚 Fix a failing test
Slight behaviour change means there's no emtpy
dict left in the top layer but the whole key
is gone.
* 🎨 Let pre-commit do its thing after merge
Co-authored-by: Gina Häußge <gina@octoprint.org >
2022-02-14 18:29:18 +01:00
Gina Häußge
7fb9df9940
♻️ Migrate code base to Python 3 only
...
* pyupgrade
* various new codemods
* manual removal of Py2/3 compat imports
* manual adjustment of docs, examples, tests
* to_str is now the new to_unicode, deprecated
redirection to to_bytes has been removed
* to_native_str has been redirected to point to
to_str
* to_unicode has been redirected to point to
to_str
* atomic_write refactored to use
NamedTemporaryDirectory
* various other fixes/refactorings all over the
place
2022-02-01 12:57:01 +01:00
Gina Häußge
fd2ece0f13
🎨 pyupgrade --py37-plus
2021-03-11 16:01:02 +01:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +01:00
Gina Häußge
5b7bc6cb91
Merge branch 'maintenance' into devel
2021-02-24 15:04:22 +01:00
Gina Häußge
86aa5548c6
✅ Make test fix align with other such cases
2021-02-22 16:47:05 +01:00
Levi Blaney
a628549ad3
Fixes #3999 test fails to reload config file
2021-02-20 10:12:16 -05: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ý
0308150048
📗 Compact dict creation
2021-01-25 19:00:28 +01:00
Miroslav Šedivý
7810a622a9
🦕 Remove redundant float conversions from Python2
2021-01-22 13:40:44 +01:00
Gina Häußge
d60bb43e07
💚 Fix unit tests testing settings init
...
We now need to explicitly trigger a write to config.yaml to test proper
creation at the right places since we no longer will automatically
generate a global API key - that has been removed.
2020-11-26 12:24:12 +01: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
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
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
24d2efd3ce
Merge devel into py23
2019-01-31 20:08:40 +01:00
Gina Häußge
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +01:00
Matthias Urlichs
828ba56952
list()-ify keys(), values() and items()
...
where required. At some places it's not.
Also, "if foo in some_dict.keys()" is unnecessarily slow.
Replaced with "if foo in some_dict".
I left "for key in some_dict.keys()" alone;
"for key in some_dict" is equivalent but not always obvious.
2019-01-28 21:55:44 +01:00
Gina Häußge
904b3c6cf5
🔧 Adjust default regex of temperature terminal filter (2nd try)
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
but should pass unit tests.
Fixes #2945
2019-01-28 18:20:03 +01:00
Matthias Urlichs
abfffa3231
Remove deprecated unittest.TestCase.assertDictContainsSubset
2019-01-28 14:14:23 +01:00
Matthias Urlichs
7fcc3551ca
We need text mode for JSON and YAML
2019-01-28 14:14:23 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
Matthias Urlichs
958fc7600d
Merge commit 'e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e' into py23
2019-01-27 17:15:52 +01:00
Matthias Urlichs
f993f744ba
Merge commit 'c623e90ebc59b90b4f4cf582ab8185b2872acff4'; commit 'f416e96414f33fb31afdf4dfbf3c863e3db35543'; commit '9ecf39febe31a44e5f5db28249ebbf006ac1580c'; commit '582b03f21fe3d808bf4e11bbba90af54b6651b34'; commit 'f5c8b04958170f19f1806b1722bf5e857ded3dce'; commit '36818057a3b4769a77731f3be8bc661437db7132'; commit 'd987cb23c119132b287f70f1c979aac8c9fff7d2' into py23
2019-01-27 17:10:01 +01:00
MirceaDan
f243a52823
all files start now with same 2 lines
...
# coding=utf-8
from __future__ import absolute_import, division, print_function
2018-12-02 02:13:12 -08:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00
MirceaDan
347f53baa4
file must be open in text mode
...
those files must be opened in text mode in python3
2018-12-01 16:36:11 -08:00
MirceaDan
337e49208a
py23 compat: using io.open instead of open
...
for python3 and python2 to work teh same io.open must be used for file handling
2018-11-30 00:32:57 -08:00
Gina Häußge
b052925424
Merge remote-tracking branch 'origin/devel' into devel
...
# Conflicts:
# tests/filemanager/test_filemanager.py
2018-11-28 17:37:47 +01:00