Skip to content

Commit 7950798

Browse files
committed
quick-win review fixes
1 parent bffaff1 commit 7950798

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- "3.10"
1818
- "3.11"
1919
- "3.12"
20+
- "3.13"
21+
- "3.14"
2022
steps:
2123
- uses: actions/checkout@v4
2224
- name: Install Python 3
@@ -56,12 +58,11 @@ jobs:
5658
strategy:
5759
matrix:
5860
python-version:
59-
- "3.9"
60-
- "3.10"
61-
- "3.11"
6261
- "3.12"
6362
steps:
6463
- uses: actions/checkout@v4
64+
with:
65+
persist-credentials: false
6566
- name: Install Python 3
6667
uses: actions/setup-python@v5
6768
- name: Install meshtastic from local
@@ -83,6 +84,8 @@ jobs:
8384
continue-on-error: ${{ matrix.channel == 'daily' }}
8485
steps:
8586
- uses: actions/checkout@v4
87+
with:
88+
persist-credentials: false
8689
- name: Install Python 3
8790
uses: actions/setup-python@v5
8891
with:

meshtastic/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,13 @@ def setSimpleConfig(modem_preset):
970970
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_SLOW)
971971

972972
if args.ch_longmod:
973-
setSimpleConfig(config_pb2.config.LoRaConfig.ModemPreset.LONG_MODERATE)
973+
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_MODERATE)
974974

975975
if args.ch_longfast:
976976
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_FAST)
977977

978978
if args.ch_longturbo:
979-
setSimpleConfig(config_pb2.config.LoRaConfig.ModemPreset.LONG_TURBO)
979+
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_TURBO)
980980

981981
if args.ch_medslow:
982982
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.MEDIUM_SLOW)
@@ -991,7 +991,7 @@ def setSimpleConfig(modem_preset):
991991
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.SHORT_FAST)
992992

993993
if args.ch_shortturbo:
994-
setSimpleConfig(config_pb2.config.LoRaConfig.ModemPreset.SHORT_TURBO)
994+
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.SHORT_TURBO)
995995

996996
if args.ch_set or args.ch_enable or args.ch_disable:
997997
closeNow = True
@@ -1969,7 +1969,7 @@ def addConfigArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentParser:
19691969

19701970
group.add_argument(
19711971
"--ch-vlongslow",
1972-
help="Change to the VERY_LONG_SLOW modem preset. Deprecated sincce 2.5 firmware.",
1972+
help="Change to the VERY_LONG_SLOW modem preset. Deprecated since 2.5 firmware.",
19731973
action="store_true",
19741974
)
19751975

meshtastic/tests/test_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def test_delete_channel_rejects_primary():
737737
with pytest.raises(SystemExit) as pytest_wrapped_e:
738738
anode.deleteChannel(0)
739739

740-
assert pytest_wrapped_e.type == SystemExit
740+
assert pytest_wrapped_e.type is SystemExit
741741
assert pytest_wrapped_e.value.code == 1
742742

743743

0 commit comments

Comments
 (0)