Laurens Valk
d00bf35c66
all: ruff check --fix.
...
Mainly fixes and sorts imports.
2026-08-25 12:22:28 +02:00
Laurens Valk
adf8ed6b56
pybricks.hubs: Enable EV3.
...
First pass including Image and ImageFile. Largely migrated from old ev3dev version. We can refine this for the embedded version in the next commits.
2026-08-25 11:42:05 +02:00
Laurens Valk
cab110d4c1
all: Format with ruff.
2026-08-24 09:28:29 +02:00
Laurens Valk
47a3d664c2
pybricks.iodevices: Include all classes in index.
...
Some were omitted once EV3 in Pybricks 2.0 was dropped, but they will be included again to prepare for EV3 in Pybricks 4.0.
Enable for Powered UP where relevant, as with UARTDevice.
2026-05-29 14:22:15 +02:00
David Lechner
8e5891d9e8
all: spelling
...
Misc spelling fixes.
2023-05-10 14:16:15 -05:00
David Lechner
eea8ff0924
examples/ev3/bluetooth: remove 3rd party dependency
...
Since Python 3.10, RFCOMM sockets are available in Python on Windows
so we no longer need 3rd party code.
Fixes: pybricks/support#902
2023-01-06 14:17:29 -06:00
Laurens Valk
bd7806d2d4
all: Format with black.
...
Also activate auto formatting. Bump flake8 and mark black
disagreements in setup.cfg.
2022-05-27 16:22:05 +02:00
David Lechner
3dad15ac11
examples: fix use of OSError
...
We generally shouldn't be raising OSError from user code since it
represents an error the bubbles up from the OS. Also, when handling
an OSError, we almost always want to check for a specific error code.
2021-04-29 09:38:16 -05:00
Laurens Valk
b0ffb24a2e
examples: import snippets from pybricks-projects
...
These code samples are rendered in the docs, so we include them here.
For the git history of these snippets, see:
https://github.com/pybricks/pybricks-projects/commits/f4914069aaacfd9ab1e0dd6f05524f62cfc56b29/snippets
2020-11-04 10:17:33 +01:00