17 Commits
Author SHA1 Message Date
Laurens Valk fae24a6ef0 setup.cfg: Allow def oneliners.
The autoformatter puts ... on the same line, so allow it for flake8 too.
2024-02-11 13:35:02 +01:00
Laurens Valk faf11581c0 pybricks.tools: Document hub_menu.
Fixes https://github.com/pybricks/pybricks-api/issues/144
2023-10-24 16:23:59 +02:00
Laurens Valk 7778ce96a5 setup: Ignore jedi for doc8. 2022-10-02 19:29:57 +02:00
The Vinh Luong (Lương Thế Vinh)andGitHub 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
David Lechner a2d9c33eb5 jedi: add new pybricks_jedi package
This package will be used in Pybricks Code to provide some intellesense
operations.
2022-06-24 14:52:45 -05: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 9d8531a85b npm/ide-docs: move npm packaging to separate directory
This makes a clean separation between the packaging and the docs.
2021-11-19 19:30:57 -06:00
Laurens Valk 238204d280 doc/main: Rename from doc/api.
The doc/api is a legacy name, which is confusing in the current use, since all build targets are now APIs.

Today we have:

doc/common: Common configuration and settings between all targets.

doc/main: Main Pybricks documentation at docs.pybricks.com.

doc/ide: Documentation shipped with the Pybricks Code IDE.
2021-07-14 11:39:20 +02:00
David Lechnerandlaurensvalk ff22c32c24 doc/api/signaltypes: use ^{\circ} instead of ° in :math:
This works for both sphinx.ext.mathjax and sphinx.ext.imgmath.
2021-01-26 08:30:48 +01:00
David LechnerandDavid Lechner 3a66b8e053 api: add type hints for v2
This adds PEP 561 style type hints for Pybricks v2 (just EV3).
2020-12-28 18:47:04 -06:00
David Lechner e3d0d51c9f config: drop versioneer
This removes versioneer for versioning. The version depends on the
pybricks-micropython version targeted so it doesn't make sense to use
automatic versioning here.
2020-03-18 17:30:42 -05:00
David Lechner 3e8f311860 config: drop setup.py
poetry is used for build system, so setup.py is no longer needed
2020-03-18 17:19:48 -05:00
Laurens Valk 9c8df9941f config: let doc8 ignore egg info 2020-03-17 15:37:20 +01:00
David LechnerandLaurens Valk 7acbcbd874 initial EV3 bluetooth mailbox docs 2020-02-12 09:55:28 +01:00
David Lechner c008c4ca09 flake8: allow longer lines
This increase max-line-length to 88 because somtimes it is nicer to have
just a few extra characters.
2020-01-13 12:59:07 -06:00
David Lechner 125732238c setup: add options for linters 2019-05-09 12:21:17 -05:00
Laurens Valk 3091489843 move API 2019-05-09 17:15:52 +02:00