Skip to content

Commit 0e43fa5

Browse files
authored
Merge pull request #118 from fujitatomoya/enable-codespell
Enable codespell
2 parents 2e263c3 + fb58596 commit 0e43fa5

32 files changed

+107
-44
lines changed

.github/workflows/codespell.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Codespell
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches-ignore:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
spellcheck:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install codespell
24+
run: pip install codespell==2.4.1
25+
26+
- name: Run codespell
27+
run: codespell --config codespell.cfg

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ docker build -f docker/Dockerfile --build-arg user=$(id -un) --build-arg uid=$(i
5959
docker run --rm -v $(pwd):/src -p 1313:1313 zenoh_web
6060
```
6161

62+
## Development
63+
64+
### Spell Check
65+
66+
This project uses [codespell](https://github.com/codespell-project/codespell) to automatically check for common spelling errors in documentation.
67+
The spell check is initiated and verified on every pull request via [GitHub Actions workflow](.github/workflows/codespell.yml).
68+
69+
- [codespell.cfg](codespell.cfg) - Main configuration that defines dictionaries, ignore patterns, and skip directories
70+
- [codespell_whitelist.txt](codespell_whitelist.txt) - Words to ignore (e.g., technical terms, Zenoh release names like "aithusa", "bahamut")
71+
- [codespell_dictionary.txt](codespell_dictionary.txt) - Custom corrections for common typos (e.g., `colcn->colcon`, `rosabg->rosbag`)
72+
6273
## License
6374

6475
This project is licensed under the [Eclipse Public License 2.0](LICENSE)

codespell.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[codespell]
2+
# Enable built-in dictionaries/rules.
3+
# See more details for https://github.com/codespell-project/codespell/tree/main/codespell_lib/data.
4+
builtin = clear,rare,informal,code
5+
6+
# Ignore words listed in this file.
7+
ignore-words = codespell_whitelist.txt
8+
9+
# Add custom dictionary file.
10+
dictionary = codespell_dictionary.txt,-
11+
12+
# Skip checking files in this directory.
13+
skip = ./public/*,./resources/*,./static/*

codespell_dictionary.txt

Whitespace-only changes.

codespell_whitelist.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
crate
2+
CAs
3+
decypher
4+
deque
5+
lets
6+
medias
7+
mut
8+
stdio
9+
UInt
10+
WAN
11+
ws
12+
WS

content/blog/2020-06-29-zenoh-tidings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ The upcoming version of **zenoh** comes with a few improvements and some new fea
3535

3636
**Generalised Peer-to-Peer and Client Communication**. In the upcoming version of **zenoh** an application can decide at runtime to behave like a peer or a client. Peers route information between themselves and can also route on behalf of clients -- in other terms peers can behave like routers. Peers-to-peer communication is supported for arbitrary connectivity graphs and supports cliques as a special case.
3737

38-
**Closure-based Discovery**. Discovery in **zenoh** is supported by the **scouting** protocol, in order to ease the deployment of system that wants to leverage a clique connectivity, for cases in which multicast is not avaiable, or desirable, we support now a clousure-based discovery. In other terms starting from a single peer, we can discover its closure, or in other terms the peers that can be reached directly or indirectly from this starting point.
38+
**Closure-based Discovery**. Discovery in **zenoh** is supported by the **scouting** protocol, in order to ease the deployment of system that wants to leverage a clique connectivity, for cases in which multicast is not available, or desirable, we support now a clousure-based discovery. In other terms starting from a single peer, we can discover its closure, or in other terms the peers that can be reached directly or indirectly from this starting point.
3939

4040
**Region-Based Routing**
41-
The new version of **zenoh** supports region-based routing. As depicted in the diagram below, this really means two things, (1) routing information required to build and maintain our routing tables scales with the size of the region, and (2) each region can decide wether to route over an arbitrary connectivity graph of assume a clique. This approach to routing will greatly improve scalability and performance by allowing to use the most appropriate routing technique within a region.
41+
The new version of **zenoh** supports region-based routing. As depicted in the diagram below, this really means two things, (1) routing information required to build and maintain our routing tables scales with the size of the region, and (2) each region can decide whether to route over an arbitrary connectivity graph of assume a clique. This approach to routing will greatly improve scalability and performance by allowing to use the most appropriate routing technique within a region.
4242
![zenoh-routing](../../img/routing.png)
4343

4444
## Performances

content/blog/2020-10-08-aithusa.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ draft: false
99
We have been waiting this very moment for several months. Months of patient
1010
dedication, months of hard and creative work. Months in which each and every
1111
member of the **zenoh** team has made his and her best to give our little dragon all
12-
it needed to succed in the complicated world of Internet Scale Protocols.
12+
it needed to succeed in the complicated world of Internet Scale Protocols.
1313

1414
Today, at about 11.00 Paris Time **Zenoh Aithusa** Hatched Out!
1515

@@ -96,7 +96,7 @@ Another goody coming with Zenoh Aithusa is the [DDS plugin](https://github.com/e
9696
## What's Next
9797
In the weeks to come we will be releasing:
9898

99-
- **Zenoh-pico**. A C-based [client stack for zenoh](https://github.com/eclipse-zenoh/zenoh/wiki/Zenoh--For-Microcontrollers) targeting the most constrained environemnts.
99+
- **Zenoh-pico**. A C-based [client stack for zenoh](https://github.com/eclipse-zenoh/zenoh/wiki/Zenoh--For-Microcontrollers) targeting the most constrained environments.
100100

101101
- **Language Bindings**. More bindings are coming up including Go-Lang and Java APIs.
102102

content/blog/2021-04-28-ROS2-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,5 @@ You can also test this with the "teleop" demos provided [here](https://github.co
255255
[**--JE**](https://github.com/JEnoch)
256256

257257
[^1]: **Why 1 domain per robot ?**
258-
In most of the cases, you don't need the robots to communicate with each other. But if you let them use the same `ROS_DOMAIN_ID`, their DDS entities in the robots will anyway exchange discovery information with each other leading to a lot of unecessary traffic that could be problematic over wireless communications (as seen in our previous blog). The simplest way to avoid such traffic is to use distinct domains. Other solutions could be specific network configuration, or specific DDS configuration.
258+
In most of the cases, you don't need the robots to communicate with each other. But if you let them use the same `ROS_DOMAIN_ID`, their DDS entities in the robots will anyway exchange discovery information with each other leading to a lot of unnecessary traffic that could be problematic over wireless communications (as seen in our previous blog). The simplest way to avoid such traffic is to use distinct domains. Other solutions could be specific network configuration, or specific DDS configuration.
259259

content/blog/2021-09-28-IAC-experiences-from-the-trenches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ For this purpose, we recently introduced a new option in the zenoh/DDS bridge:
118118
- *"float"* is the maximum frequency in Hertz; if publication rate is higher, downsampling will occur when routing.
119119
120120
This option can be used multiple times for different frequency per-topic.
121-
For instance, if we want such limtations (topic names are fictitious):
121+
For instance, if we want such limitations (topic names are fictitious):
122122
- from the racecar, we want to re-publish over zenoh those topics with a maximum frequency for each:
123123
- `position`: 10Hz
124124
- `speed`: 10Hz

content/blog/2021-10-04-zenoh-pico-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ The scarce memory and flash resources in microcontrollers stresses out the impor
223223

224224
| | | | **reel_board (Zephyr)** | | | **nucleo-f767zi (Zephyr)** | | | **ESP32-D0WDQ6 (Arduino)** |
225225
|--------------------------------|---|---|:-----------------------:|---|---|:--------------------------:|---|---|:--------------------------:|
226-
| **Build-in Flash** | | | 1MiB | | | 2MiB | | | 4MiB |
226+
| **Built-in Flash** | | | 1MiB | | | 2MiB | | | 4MiB |
227227
| **Empty Binary (Zephyr-only)** | | | 68166 bytes | | | 127344 bytes | | | 385859 bytes |
228228
| **Zenoh Publisher** | | | 164654 bytes | | | 186942 bytes | | | 423161 bytes |
229229

0 commit comments

Comments
 (0)