Commit Graph

7 Commits

Author SHA1 Message Date
Shane Smiskol 8dd787e9a6
mypy: check untyped definitions (#517)
* add cereal mypy.ini

* mypy doesn't use unittest asserts yet

* Argument 1 to "len" has incompatible type "object"; expected "Sized"  [arg-type]

* type ports

* int|none

* final thing

* move to pyproject.toml

* clean p
2023-08-17 20:19:01 -07:00
Kurt Nistelberger e310f4860d
Sensor events splitup (#357)
* change from sensorEvents to separated events

* fix numbering

* remove sensorEvent

* update after rebase

* .

* move bmx gyro and accel to its own channels

* address PR comments

* .

* inc frequency in tests

* .

* rename sensorEventsDEPRECATED sensorEvents

* readd sensorEvents in services.py

* .

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-09-27 15:28:22 -07:00
Shane Smiskol c92be0564c
Automatically generate service ports (#136)
* make sure specified port isn't reserved

* only sshd

* Add check to tests as well and test

* commonly define these safety check numbers in services and check in both places

* add function to generate new ports that aren't reserved

* port is guaranteed to not be a reserved port and above 8000 now

asserting the rate on runtime isn't necessary, just for testing

* create service_list dynamically

* redundant

* just add an offset equal to length of services dict

* fix test?

* only one reserved

* ignore the argument type error

* rm line

* Add back tests

* starts at 8001
2021-04-20 17:57:54 +02:00
Adeeb Shihadeh 566152fc29 fix linter 2020-07-29 14:09:00 -07:00
Adeeb Shihadeh 87c10d3346 fix test file path 2020-07-29 13:57:24 -07:00
Adeeb Shihadeh 17c3ad78f2 test generated services.h 2020-07-29 13:45:03 -07:00
Adeeb Shihadeh 3020c2b925 simple service tests 2020-07-29 13:38:36 -07:00