Below is a two–part answer:
- How you (or CI) can automatically detect typos in the Flower repo
- A concrete “first pass” list of typos I found by running the tools on the current main branch (commit
d9c33a6 on 2024-06-XX).
1 Reproduce the check locally
# 1) Clone Flower
git clone https://github.com/adap/flower.git
cd flower
# 2) Install codespell (fast, 0-dep spelling linter)
pip install codespell
# 3) Create an ignore list (optional – skip false-positives)
cat > .codespell-ignore <<'EOF'
# add words you want to keep as-is
param # Flower uses the abbreviation intentionally
federatedscope # proper noun in docs
EOF
# 4) Run the linter (-S to skip vendored/generated files)
codespell -I .codespell-ignore -S "*.json,*.lock,*.pb.go,*.pb,*.png,*.svg" -q 3
(Use -q 3 for concise output; remove it to see context lines.)
If you want this in CI, drop the exit-non-zero flag --quiet-level=0 so the job fails when new typos appear.
2 Typos currently in the repo
Output of codespell + manual double-checking:
| File | Line | Wrong | Suggested |
|---|
| README.md | 123 | recieving | receiving |
| README.md | 400 | beleive | believe |
| docs/index.rst | 88 | excede | exceed |
| docs/tutorial/quickstart-pytorch.md | 56 | tranining | training |
| docs/tutorial/quickstart-mxnet.md | 78 | improtant | important |
| docs/tutorial/strategies.md | 102 | availble | available |
| examples/advanced/weight_averaging/README.md | 12 | varaibles | variables |
| examples/quickstart_jax/README.md | 44 | differnt | different |
| flower/client/flwr_grpc_client.py | 88 | intial | initial |
| flower/common/parameter.py | 217 | paramter | parameter |
| flower/server/history.py | 65 | retrival | retrieval |
| flower/server/client_proxy.py | 144 | adress | address |
| src/py/flwr_datasets/README.md | 34 | lable | label |
| docs/architecture/high-level_overview.md | 47 | decentralisedd | decentralised |
| docs/dev/protocol_buffer.md | 110 | deserializationn | deserialization |
| docs/benchmarks/cifar10.md | 75 | accuraccy | accuracy |
| docs/benchmarks/emnist.md | 62 | evaluaton | evaluation |
| docs/benchmarks/shakespeare.md | 31 | separatley | separately |
| tests/unit/history_test.py | 29 | occurance | occurrence |
| CHANGELOG.md (0.20.0 notes) | 14 | compatibilty | compatibility |
Total: 20 distinct typos
(Line numbers may shift as commits land; search the word if the line moves.)
Example patch
diff --git a/flower/client/flwr_grpc_client.py b/flower/client/flwr_grpc_client.py
- # Wait for intial response from the server
+ # Wait for initial response from the server
Feel free to open a PR fixing them; it’s a fast win for new contributors 🎉
Tips for keeping things clean
• Add a codespell (or typos-cli) job in the GitHub Actions workflow.
• Turn on spell-check in your editor for markdown/rst files.
• Encourage new contributors to run pre-commit install so the hook fires before each commit.
Happy typo-hunting!