Laurens Valk
25f427d8bf
ubuiltins: Slice instances are not supported.
2022-11-28 11:24:51 +01:00
Laurens Valk
725b6d672c
ubuiltins: Document list, tuple.
2022-11-28 11:17:18 +01:00
Laurens Valk
4bc53b17f4
ubuiltins: Document len().
2022-11-28 11:11:15 +01:00
Laurens Valk
666f2a6b52
.vscode/settings: Set interpreter path.
...
This way vscode will pick up all the right tools and not complain about
linters not being installed.
2022-11-28 11:07:50 +01:00
Laurens Valk
cbf6eb9578
ubuiltins: Document bytes, bytearray, type.
2022-11-28 10:53:53 +01:00
Laurens Valk
7dd3edaee4
jedi/tests: Make PrimeHub the same as InventorHub.
2022-11-22 14:26:25 +01:00
Laurens Valk
ef57dbf4a1
pybricks.common.LightMatrix: Rename image() to icon().
...
Fixes https://github.com/pybricks/support/issues/409
2022-11-22 14:26:15 +01:00
David Lechner
3a60d40bac
@pybricks/ide-docs v2.4.0
@pybricks/ide-docs/v2.4.0
2022-11-11 11:39:47 -06:00
David Lechner
cb0dee3e99
npm/jedi: v1.3.0
...
Update `pybricks_jedi` Python package to v1.3.0.
@pybricks/jedi/v1.3.0
2022-11-11 11:36:31 -06:00
David Lechner
19673da32e
jedi/pyproject: v1.3.0
pybricks_jedi/v1.3.0
2022-11-11 11:31:02 -06:00
David Lechner
b8b5652cb6
jedi: update pybricks package to v3.2.0b5
2022-11-11 11:30:01 -06:00
David Lechner
7b4953bc5f
pyproject: v3.2.0b5
...
Update version for `pybricks` Python package release.
v3.2.0b5
2022-11-11 11:24:57 -06:00
David Lechner
62f6fc85a5
jedi: fix code completion for Color and Icon
...
The pybricks.parameters.Color and Icon types were not working with Jedi
for code completion since the constants were never assigned a value.
2022-11-10 12:23:24 -06:00
Laurens Valk
d2b1b2183b
pybricks.parameters.Icon: Document it.
...
Fixes https://github.com/pybricks/pybricks-api/issues/107
2022-11-10 16:38:44 +01:00
David Lechner
a236609ebf
npm/icons: v1.2.1
@pybricks/images/v1.2.1
2022-11-08 15:06:55 -06:00
Laurens Valk
6c893c136e
doc/main/diagrams: Fix City Hub position.
...
It was accidentally moved to a non-integer position. This causes the PNG to re-render. This increases the file size and makes it looks less crisp.
2022-11-08 19:55:48 +01:00
Laurens Valk
f4212f232e
doc/main/diagrams: Adjust Move Hub icon scale.
...
Fixes https://github.com/pybricks/support/issues/773
2022-11-08 19:52:51 +01:00
David Lechner
3a805b0ca9
npm/images: v1.2.0
@pybricks/images/v1.2.0
2022-11-03 13:03:19 -05:00
Laurens Valk
c52627cc8f
doc/main/diagrams: Add hub icon variants.
...
This re-exports all hub images in a square format for use as icons while getting correct relative scaling.
2022-11-03 17:07:41 +01:00
David Lechner
b84fed1de9
npm/images: add hub-inventor.png file to package
@pybricks/images/v1.1.0
2022-10-28 12:38:07 -05:00
David Lechner
d49bc548c7
npm/images: new @pybricks/images package v1.0.0
@pybricks/images/v1.0.0
2022-10-28 12:21:27 -05:00
Barry-Williams and laurensvalk
492d6cd2d4
pybricks.robotics.DriveBase: Add basic example.
2022-10-28 08:23:14 +02:00
Laurens Valk
be3558167e
doc/common/extensions: Fix compatibility labels.
...
Fixes https://github.com/pybricks/support/issues/754
2022-10-27 15:41:42 +02:00
David Lechner
4573fd2760
LICENSE: update copyright year
2022-10-21 13:14:13 -05:00
David Lechner
2a23c2e81d
npm/jedi: v1.1.0
...
- Update pybricks_jedi Python package dependency.
- Bump JavaScript package version for release.
@pybricks/jedi/v1.1.0
2022-10-21 13:08:14 -05:00
David Lechner
fe126de264
npm/pybricks-docs: v2.3.0
...
New JavaScript package release for v3.2.0b4 docs.
@pybricks/ide-docs/v2.3.0
2022-10-21 12:59:25 -05:00
David Lechner
b290f7dc6b
github: update jedi action dependencies
...
Update to current Ubuntu LTS and actions.
This fixes deprecation warnings about node v12 and fixes wrong python
version used by poetry.
pybricks_jedi/v1.2.0
2022-10-21 12:55:28 -05:00
David Lechner
9127afdcbc
jedi: pybricks_jedi v1.2.0
...
Bump pybricks_jedi package version for release.
2022-10-21 12:51:43 -05:00
David Lechner
7ee1f66556
jedi: update pybricks package
...
This updates the pybricks package dependency to v3.2.0b4.
2022-10-21 12:51:00 -05:00
David Lechner
f5422e9c90
v3.2.0b4
v3.2.0b4
2022-10-21 12:39:27 -05:00
David Lechner
40fc2588f9
pybricks._common.System: add storage method
...
This adds stubs, docs and code completion tests for the System.storage()
method.
This was added to Pybricks MicroPython in:
https://github.com/pybricks/pybricks-micropython/commit/246ebea25d25d5a3e4a4e62ebd031491a409c923
2022-10-21 12:35:34 -05:00
David Lechner and laurensvalk
96be47f21b
doc/main/pupdevices/motor: Fix center example.
...
This fixes the include for the centering example to link it to the correct source file.
Fixes: https://github.com/pybricks/support/issues/734#issuecomment-1272329217
2022-10-10 09:20:00 +02:00
Laurens Valk
e1be50181a
doc/main: Revisit and automate all renders and diagrams.
...
Previously, all renders were created and added manually when a newly
supported device was added to the documentation.
This commit revisits all diagrams by creating them using a single
LDRAW multi-file part model and LPUB3D building instructions file.
This makes perspective and resolution consistent across all images, and
we could update them all at once if needed.
It also removes the background from all images so they can be used
with different documentation themes.
2022-10-10 09:19:49 +02:00
Laurens Valk
52117157d8
.gitignore: Ignore LDRAW tool data.
2022-10-02 19:31:06 +02:00
Laurens Valk
7778ce96a5
setup: Ignore jedi for doc8.
2022-10-02 19:29:57 +02:00
Laurens Valk
637677dae2
jedi/poetry: Install in project.
...
Nested virtual environments are complicated enough, so this way we can at least get back to a clean state if we need to.
2022-09-30 16:04:33 +02:00
Laurens Valk
abc00df943
pybricks.pupdevices: Avoid class-specific LightArray.
...
Let's minimize complicated hacks if we can help it.
2022-09-30 16:04:33 +02:00
David Lechner
bfa0b69e93
npm/jedi: fix exports and copy extra files
...
The export keys were wrong and the README and CHANGELOG files were
missing the the final package.
@pybricks/jedi/v1.0.1
2022-09-07 20:19:23 -05:00
David Lechner
f664757ef3
npm/jedi: new js package
...
This adds a new javascript package for distributing the pybricks-jedi
Python package and it's dependencies via the npm ecosystem for use in
Pybricks Code.
@pybricks/jedi/v1.0.0
2022-09-07 20:10:34 -05:00
David Lechner
b747520d1c
jedi: add LICENSE file
...
This adds a LICENSE file to the jedi directory specifically for the
pybricks-jedi Python package. Poetry will automatically pick up this
file and include it in the distributed package.
2022-09-07 19:41:23 -05:00
The Vinh Luong (Lương Thế Vinh) and GitHub
dcddf15d15
flake8: Update VSCode settings and suppress some Flake8 linting warnings.
...
* update VSCode settings to exclude __pycache__
* suppress some Flake8 linting warnings
* minor fix: SPHINX_BUILD env var may not be set
* decorate _PybricksEnumMeta.__dir__() with @classmethod
* flake8-ignore E501
2022-09-05 18:40:39 -05:00
The Vinh Luong (Lương Thế Vinh) and GitHub
c64458d3b9
parameters: Fix wrong typing in pybricks.parameters.Stop.
2022-09-05 18:38:29 -05:00
David Lechner
2a963b2a0b
poetry: update dependencies
...
This fixes:
Invalid PEP 440 version: '5.1.0.dev20220527.dev-20220527'
2022-09-05 16:58:56 -05:00
Laurens Valk
6df509b66e
pybricks.hubs.EssentialHub: Fix duplicate example.
...
Also delete reference image with the light consistent with other small hubs.
2022-07-04 15:00:41 +02:00
Laurens Valk
ac9585b7a5
ubuiltins: Fix broken classmethod decorator.
...
Since classmethod is being redefined here, it broke Sphinx.
Fixes https://github.com/pybricks/pybricks-api/issues/86
2022-07-04 14:33:17 +02:00
Laurens Valk
0982d5d65b
ubuiltins: Document int.
2022-07-04 14:33:17 +02:00
Laurens Valk
8e7f8c619e
ubuiltins: Document float.
2022-07-04 14:33:17 +02:00
Laurens Valk
a0b3ba1d74
ubuiltins: Document dict.
...
This just adds a direct reference to the Python docs.
2022-07-04 14:33:17 +02:00
Laurens Valk
3dc28579ef
ubuiltins: Document bool, complex.
2022-07-04 14:33:17 +02:00
Laurens Valk
923f9df3da
ubuiltins: Document input, print.
2022-07-04 14:33:17 +02:00