Steve Holden
a07e853f69
Refactor to remove pylint issues.
...
Since one of pylint's complains was that the globals module was
shadowing the built-in, and since the name `config` was already
is use in several modules, globals.py was renamed as mt_config.py.
All tests now pass, and the only remaining local pylint errors
relate to the protobuf code, I'm hoping this will make the PR
valid.
2024-04-10 17:42:44 +01:00
Steve Holden
0d57449030
Begin to rationalise test data.
...
Also refactor to silence some CI issues.
2024-04-10 14:25:17 +01:00
Steve Holden
067cddd354
Refactor to avoid the use of a special global object.
...
The global object formerly used is now replaced by direct use
of the namespace opf the globals module. This eliminates the
redundant getters and setters and simplifies the code for
future maintainers.
Note that the globals module name conflicts (harmlessly at
present) with a Python built-in function. A future commit
should rename it `config` to remove this clash and better
represent its intended purpose.
2024-04-10 10:03:12 +01:00
Ian McEwen
157f9cd276
Group and organize arguments a bit more
2024-04-07 23:20:02 -07:00
Ian McEwen
b57d1d81ff
Fix up pylint from merged PR
2024-04-02 15:15:22 -07:00
Ian McEwen
4c97866875
Merge pull request #511 from flavoromission/506-show-all-module-settings
...
feat:506 show all module settings
2024-04-02 13:11:35 -07:00
Ian McEwen
4baef92523
Fix assorted mypy-detected errors
2024-03-29 18:38:25 -07:00
Ian McEwen
daa5587443
re-fix pylint
2024-03-23 22:17:49 -07:00
Ian McEwen
a139d180b8
Fix up or comment out broken tests, to get CI (hopefully) happy
2024-03-23 22:07:17 -07:00
Ian McEwen
09f8405422
Remove --sendping as REPLY_APP portnum is disabled in firmware now
2024-03-23 21:25:38 -07:00
Ian McEwen
b8640666d7
Fix some outstanding pylint issues (or disable the checks)
2024-03-19 12:47:08 -07:00
flavor omission
27be73c707
feat:506 show all module settings
...
Problem:
Missing fields are omitted.
Solution:
This fix sets the flag `always_print_fields_with_no_presence`
in the invocation of the protobuff method
`MessageToJson` will display the missing fields.
see: MessageToJson 6b36eb633c/python/google/protobuf/json_format.py (L82)
see: issue #506 https://github.com/meshtastic/python/issues/506
2024-03-18 00:01:47 -04:00
Ben Meadors
67636c4ce2
Revert "Move pb2 Files to Own Folder"
2024-03-11 12:18:25 -05:00
foglet15
df8ea85873
change to PbDefinitions for clearer naming
2024-02-25 14:22:15 -05:00
foglet15
10c2e753f5
fix tests imports, add sed for fixing pb2 imports
2024-02-25 14:16:31 -05:00
Wolfgang Nagele
0a8a193081
BLE Support
2024-01-15 21:33:53 +01:00
luzpaz
0a88ca6a5c
Fix various source comment typos
...
Found via `codespell -q 3`
2023-07-15 01:04:47 +00:00
Thomas Göttgens
97aa8a8d74
fixing a few linter errors.
2023-03-31 20:09:59 +02:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Manuel Verch
193c3faca5
Fix remote_hardware configuration
2023-03-26 16:25:59 +02:00
Ben Meadors
d852981371
Med
2022-09-08 07:09:25 -05:00
Ben Meadors
afed5bd943
Fixed med preset names
2022-09-08 07:09:13 -05:00
Thomas Göttgens
682fdb7ef4
Remove test for deprecated option
2022-06-17 10:57:39 +02:00
Thomas Göttgens
c55b1188e8
remove "Request Settings" during init, team settings and deprecated settings.
2022-06-17 10:40:40 +02:00
Mike Kinney
47781fa1e0
remove unused import
2022-06-16 22:46:04 -07:00
Mike Kinney
cc98ed1084
comment yet another test
2022-06-16 22:43:42 -07:00
Mike Kinney
5bfebbe436
comment out code until it does not complain
2022-06-16 22:38:23 -07:00
Mike Kinney
89b0426a2b
fix warnings now that tests have been commented out
2022-06-16 19:26:52 -07:00
Mike Kinney
e1f1cab5a5
comment out failing tests (for now)
2022-06-16 19:22:13 -07:00
Mike Kinney
132fb4fe5f
get pylint to pass
2022-06-16 19:13:18 -07:00
Ben Meadors
b79b7ceb40
Correct config
2022-06-16 20:31:14 -05:00
Mike Kinney
99eed4bb5c
remove send_owner_interval
2022-04-18 16:35:06 -07:00
Mike Kinney
0c92460163
got smoke1 tests to pass
2022-04-11 13:58:56 -07:00
Mike Kinney
8bb570d222
fix smoke1 tests
2022-04-11 13:17:39 -07:00
Mike Kinney
00346ea441
fix tests for 1.3
2022-03-31 14:18:53 -07:00
Mike Kinney
3d9a55add3
regen code from updated protobufs
2022-03-30 11:32:47 -07:00
Mike Kinney
af7bf7ff7f
add wifi min length check
2022-03-21 10:48:27 -07:00
Mike Kinney
1a2519d647
refactor code to util
2022-03-08 10:45:11 -08:00
Mike Kinney
a3572efaa6
add duplicate check
2022-03-08 10:44:14 -08:00
Mike Kinney
ede1b5f08b
fix when ports are not sorted
2022-03-07 21:21:41 -08:00
Mike Kinney
bcf00a1f8d
handle ignore_incoming repeated field
2022-03-03 17:11:22 -08:00
Mike Kinney
58de84945f
change version per pypi reqs
2022-03-02 11:39:07 -08:00
Mike Kinney
68530f6e11
change medium to mid
2022-03-02 11:29:38 -08:00
Mike Kinney
fd752bedc5
change version format
2022-03-02 11:24:13 -08:00
Mike Kinney
6f2efdcefe
got lint and pytest working
2022-03-02 10:28:07 -08:00
Mike Kinney
5965615e17
increase timeout; ensure secondary channel is deleted before trying to add it
2022-03-02 00:04:21 +00:00
Mike Kinney
730934f520
add cm
2022-02-25 23:36:05 -08:00
Balazs Kelemen
b56a054f50
Canned message - Extend messages length
2022-02-21 22:06:03 +01:00
Mike Kinney
e53a5023f1
add detection of duplicate ports to findPorts; fix smoke1 test
2022-02-18 11:13:48 -08:00
Mike Kinney
26f65c4fee
only delay on win11
2022-02-18 10:08:53 -08:00