Skip to content

Commit 73e5534

Browse files
authored
Merge pull request #376 from B-AROL-O/gmacario-add-spell-check
[FEAT]: Add CI workflow to check for commonly misspelled words
2 parents 3a98487 + ba6f9c6 commit 73e5534

19 files changed

+63
-29
lines changed

.codespellrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
2+
# See: https://github.com/codespell-project/codespell#using-a-config-file
3+
[codespell]
4+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
5+
ignore-words-list = licence,grey,iterm,parm,ser,som,technic
6+
skip = *.pdf,./.git,./.licenses,__pycache__,node_modules,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
7+
builtin = clear,informal,en-GB_to_en-US
8+
check-filenames =
9+
check-hidden =
10+
11+
# EOF

.github/workflows/spell-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Spell Check
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
9+
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
12+
13+
jobs:
14+
spellcheck:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Spell check
22+
uses: codespell-project/actions-codespell@v2
23+
24+
# EOF

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/B-AROL-O/ARNEIS)
44
[![GitHub Super-Linter](https://github.com/B-AROL-O/ARNEIS/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)
5+
[![Spell Check](https://github.com/B-AROL-O/ARNEIS/actions/workflows/spell-check.yml/badge.svg)](https://github.com/B-AROL-O/ARNEIS/actions/workflows/spell-check.yml)
56

67
[![ARNEIS logo](docs/images/arneis-logo.png)](https://arneis.readthedocs.io/)
78

code/poweredupapp-flash-move/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This folder contains a simple project for the [LEGO® Powered Up](https://pla
77
## Prerequisites
88

99
* [ ] A mobile device (phone or tablet) running Android
10-
* [ ] One LEGO® Technics Bluetooth Hub (Item no. [bb0961c01](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01&idColor=86))
10+
* [ ] One LEGO® Technic® Bluetooth Hub (Item no. [bb0961c01](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01&idColor=86))
1111
* [ ] One LEGO® Powered Up L Motor (Item no. [bb0959c01](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0959c01&idColor=85))
1212
* [ ] 6x AA fully charged batteries
1313

docs/architecture/arneis-swarch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ The following services are expected to be deployed on the ARNEIS cluster:
4343
* ARNEIS backend service ([Node.js](https://nodejs.org/) + [Koa](https://koajs.com/) - possibly based on some publicly available boilerplate)
4444
* ARNEIS customer frontend (static site developed in [Next.js](https://nextjs.org/))
4545
* Service running on the RPi4 for controlling the [OAK-D-Lite](https://docs.luxonis.com/projects/hardware/en/latest/pages/DM9095.html) (Python3?)
46-
* Service running on the RPi4 for controlling the [LEGO® Technics Bluetooth Hub](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01&idColor=86#T=C&C=86) (Python3?)
46+
* Service running on the RPi4 for controlling the [LEGO® Technic® Bluetooth Hub](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01&idColor=86#T=C&C=86) (Python3?)
4747

4848
<!-- EOF -->

docs/arneis-social-media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Date | Coverage | Summary
6464
2022-03-21 | [dev-cw11](https://gmacario.github.io/posts/2022-03-21-arneis-dev-cw11) | B-AROL-O Team at the OpenCV Weekly Webinar<br>Working on a synthetic dataset for training the ARNEIS NN<br>Built a second ARNEIS MOC
6565
2022-03-14 | [dev-cw10](https://gmacario.github.io/posts/2022-03-14-arneis-dev-cw10) | New release of the LEGO® design for ARNEIS<br>Progress in controlling the LEGO® Powered Up devices<br>Multi-agent support to the Kubernetes cluster
6666
2022-03-07 | [dev-cw09](https://gmacario.github.io/posts/2022-03-07-arneis-dev-cw09) | We got a logo for the ARNEIS Project<br>Released code to pretty-print LEGO BOM<br>ARNEIS will be showcased at San Mauro Brick Show 2022
67-
2022-02-28 | [dev-cw08](https://gmacario.github.io/posts/2022-02-28-arneis-dev-cw08) | Talks with Piemonte Bricks LUG<br>The MOC is taking shape<br>First attempts at programming LEGO® Technics Bluetooth Hubs
67+
2022-02-28 | [dev-cw08](https://gmacario.github.io/posts/2022-02-28-arneis-dev-cw08) | Talks with Piemonte Bricks LUG<br>The MOC is taking shape<br>First attempts at programming LEGO® Technic&reg; Bluetooth Hubs
6868
2022-02-21 | [dev-cw07](https://gmacario.github.io/posts/2022-02-21-arneis-dev-cw07) | First assembly of the ARNEIS Conveyor with LEGO®<br>Our OpenCV Weekly Webinar postponed<br>First release of the ARNEIS Software Architecture
6969
2022-02-14 | [dev-cw06](https://gmacario.github.io/posts/2022-02-14-arneis-dev-cw06) | Our LEGO 42100 Set should eventually arrive<br>First shot at ARNEIS System Architecture<br>And the Kubernetes cluster is alive
7070
2022-02-07 | [dev-cw05](https://gmacario.github.io/posts/2022-02-07-arneis-dev-cw05) | OAK-D-Lite LEGO® mechanical adapter<br>Motorized Bottle Conveyor (2022-02-06)<br>Steps for training our custom Neural Network

docs/bibliography.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* [LEGO&reg; Powered Up Connector](https://www.biasedlogic.com/index.php/lego-powered-up-connector/) - Marek's microsite, 2022-09-26
3535
* [LEGO&reg; Powered Up simple code block guide](https://racingbrick.com/powered-up-code-block-guide/) - RackingBrick, 2020-04-29
3636
* [LEGO&reg; Powered Up extended code block guide](https://racingbrick.com/powered-up-code-block-guide-full/) - RackingBrick, 2020-04-29
37-
* [LEGO&reg; Set 42100 (Liebherr R 9800 Excavator)](https://arneis.readthedocs.io/en/latest/lego-set-42100) includes 2x [LEGO&reg; Technics Bluetooth Hub](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01#T=C) (LEGO&reg; Part bb0961c01).
37+
* [LEGO&reg; Set 42100 (Liebherr R 9800 Excavator)](https://arneis.readthedocs.io/en/latest/lego-set-42100) includes 2x [LEGO&reg; Technic&reg; Bluetooth Hub](https://www.bricklink.com/v2/catalog/catalogitem.page?P=bb0961c01#T=C) (LEGO&reg; Part bb0961c01).
3838
* [Powered Up - A tear down...](https://www.eurobricks.com/forum/index.php?/forums/topic/162288-powered-up-a-tear-down/) - Eurobricks Forum, 2018-06-07
3939
* [Programming the Lego NXT using Mathematica with Math4NXT](http://web5.uottawa.ca/www5/dcousineau/home/Others/Math4NXT/index.html) by Denis Cousineau
4040
* [Smart Robotics with LEGO MINDSTORMS Robot Inventor](https://www.packtpub.com/product/smart-robotics-with-lego-mindstorms-robot-inventor/9781800568402) by Aaron Maurer. Packt Publishing, May 2021
@@ -44,7 +44,7 @@
4444
* **BrickNil**: A Python async library for PoweredUp/Boost
4545
- GitHub repository: <https://virantha.github.io/bricknil>
4646
- Discussion on Eurobricks.com: <https://www.eurobricks.com/forum/index.php?/forums/topic/170945-bricknil-a-python-async-library-for-poweredupboost/>
47-
* [Controlling the Lego Technics Hub (Hub 2) via Bluetooth (btle) using a Raspberry Pi 4B](https://dietrichchristopeit.github.io/lego-pi-docs/#controlling-the-lego-technics-hub-hub-2-via-bluetooth-btle-using-a-rasperry-pi-4b)
47+
* [Controlling the Lego Technic Hub (Hub 2) via Bluetooth (btle) using a Raspberry Pi 4B](https://dietrichchristopeit.github.io/lego-pi-docs/#controlling-the-lego-technics-hub-hub-2-via-bluetooth-btle-using-a-rasperry-pi-4b)
4848
* Article: [Hack Lego Boost with Raspberry Pi](https://magpi.raspberrypi.com/articles/hack-lego-boost-with-raspberry-pi) - The MagPi Magazine, 2019-04-01
4949
* Tutorial: [How to export/import a project in the Powered Up app on Android](https://racingbrick.com/2020/01/how-to-export-import-a-project-in-the-powered-up-app-on-android/) - RacingBrick, 2020-01-22
5050
* Article: [How to Set Up Bluetooth on the Raspberry Pi for a LEGO@reg; Spike](https://medium.com/jj-innovative-results/how-to-set-up-bluetooth-on-the-raspberry-pi-for-a-lego-spike-61b137f98673) - Jason Jurotich on Medium.com, 2020-05-23

docs/howto/howto-configure-google-analytics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
This document explains how to configure [Google Analytics 4](https://analytics.google.com/analytics/web/?) and integrate it into your existing web site, for instance the one created followint the [HOWTO Create a Landing Page on Netlify](howto-create-landing-page-netlify.md).
5+
This document explains how to configure [Google Analytics 4](https://analytics.google.com/analytics/web/?) and integrate it into your existing web site, for instance the one created following the [HOWTO Create a Landing Page on Netlify](howto-create-landing-page-netlify.md).
66

77
## Reference documents
88

@@ -29,7 +29,7 @@ Presenters:
2929

3030
<!-- (2023-07-06 11:00-12:00 CEST) -->
3131

32-
In this follow up session, we'll explore workspaces in GA4 and you'll learn how to build custom tables and visualisations of your data
32+
In this follow up session, we'll explore workspaces in GA4 and you'll learn how to build custom tables and visualizations of your data
3333

3434
Presenters:
3535

docs/howto/howto-control-rpi-poweredup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The app will also check the version of the firmware on the Hub, and propose the
7171

7272
Repeat the steps for the second hub in the set.
7373

74-
After all the checks are succesful, the app is ready and can be used to control the excavator and have hours of entertainment with the LEGO set.
74+
After all the checks are successful, the app is ready and can be used to control the excavator and have hours of entertainment with the LEGO set.
7575

7676
## Using Pybricks
7777

@@ -95,7 +95,7 @@ If you use the City Hub, you must unplug all motors and sensors. Follow these st
9595

9696
### Load some Python program
9797

98-
From the [Pybricks Code](https://code.pybricks.com/) web interface, create or open a MicroPython source file and upload it to the LEGO Technics BT Hub. You may find some examples under the `/code` folder of the [ARNEIS repository on GitHub](https://github.com/B-AROL-O/ARNEIS).
98+
From the [Pybricks Code](https://code.pybricks.com/) web interface, create or open a MicroPython source file and upload it to the LEGO Technic BT Hub. You may find some examples under the `/code` folder of the [ARNEIS repository on GitHub](https://github.com/B-AROL-O/ARNEIS).
9999

100100

101101
## Controlling from a Raspberry Pi
@@ -203,7 +203,7 @@ Some quick links:
203203

204204
- [#369 Definitive Guide to Attaching Sensors to the Raspberry Pi (Tutorial)](https://www.youtube.com/watch?v=gnE4v-PcYKQ) - YouTube video by Andreas Speiss, 2021-01-24
205205

206-
On the other hand, this option has the disadvantage that the feedback loop sensor/actuator will be slower since a longer path (Sensor --> Raspberry Pi --> BLE --> Technics Hub --> Actuator) should be followed.
206+
On the other hand, this option has the disadvantage that the feedback loop sensor/actuator will be slower since a longer path (Sensor --> Raspberry Pi --> BLE --> Technic Hub --> Actuator) should be followed.
207207

208208
### Input sensors connected to the LEGO&reg; Powered Up Hub
209209

@@ -213,15 +213,15 @@ At the moment only few types of input sensors with Powered Up interface are avai
213213
- [LEGO WeDo Tilt Sensor](https://www.brickowl.com/catalog/lego-wedo-tilt-sensor-63522) - Code 63522
214214
- Infrared Sensor - Code TODO
215215

216-
Those sensors are directly usable with LEGO&reg; Technics BT Hub using different languages, including [Pybricks](https://pybricks.com/):
216+
Those sensors are directly usable with LEGO&reg; Technic&reg; BT Hub using different languages, including [Pybricks](https://pybricks.com/):
217217

218218
- <https://docs.pybricks.com/en/stable/pupdevices/colordistancesensor.html>
219219
- <https://docs.pybricks.com/en/stable/pupdevices/tiltsensor.html>
220220
- <https://docs.pybricks.com/en/stable/pupdevices/infraredsensor.html>
221221

222222
As an added bonus, the [ColorDistanceSensor](https://docs.pybricks.com/en/stable/pupdevices/colordistancesensor.html#pybricks.pupdevices.ColorDistanceSensor) can send infrared signals to control Power Functions infrared receivers. You can use this technique to control medium, large, extra large, and train motors. You can find more details at <https://docs.pybricks.com/en/stable/pupdevices/pfmotor.html>.
223223

224-
Provided that the available sensors are good enough for the use case, this option is probably the one which guarantees the quickest feedback loop (Sensor --> Technics Hub --> Actuator)
224+
Provided that the available sensors are good enough for the use case, this option is probably the one which guarantees the quickest feedback loop (Sensor --> Technic Hub --> Actuator)
225225

226226
### Input sensors connected to the SBrick Plus
227227

docs/howto/howto-install-depthai-on-rpi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ sudo dmesg -w
8080

8181
Connect the OAK-D-Lite to one USB 3.0 port of the Raspberry Pi using a USB 3.0 cable (USB-A to USB-C).
8282

83-
As soon as the OAK-D-Lite gets recognize the following messages should be displyed on the kernel log:
83+
As soon as the OAK-D-Lite gets recognize the following messages should be displayed on the kernel log:
8484

8585
```text
8686
[ 5253.298901] usb 1-1.2: new high-speed USB device number 4 using xhci_hcd

0 commit comments

Comments
 (0)