Skip to content

Commit 0cf81d4

Browse files
O957rickwierenga
andauthored
Fix Typos And Add Typos Pre-Commit Hook (#655)
Co-authored-by: AFg6K7h4fhy2 <127630341+AFg6K7h4fhy2@users.noreply.github.com> Co-authored-by: Rick Wierenga <rick_wierenga@icloud.com>
1 parent 14b8867 commit 0cf81d4

File tree

32 files changed

+129
-95
lines changed

32 files changed

+129
-95
lines changed

.github/workflows/typo.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Typo check
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
12+
env:
13+
CLICOLOR: 1
14+
15+
jobs:
16+
spelling:
17+
name: Spell Check with Typos
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
- name: Spell Check Repo
24+
uses: crate-ci/typos@v1

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ repos:
77
language: system
88
files: ^pylabrobot/.*$
99

10+
- repo: https://github.com/crate-ci/typos
11+
rev: v1
12+
hooks:
13+
- id: typos
14+
files: ^pylabrobot/.*$
15+
args: ["--force-exclude"]

.vscode/settings.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
11
{
22
"editor.tabSize": 2,
33
"files.trimTrailingWhitespace": true,
4-
"cSpell.words": [
5-
"agrow",
6-
"agrowpumps",
7-
"coro",
8-
"cytomat",
9-
"decalibrate",
10-
"Defaultable",
11-
"Deprecated",
12-
"frontmost",
13-
"hepa",
14-
"Inheco",
15-
"iswap",
16-
"jsonify",
17-
"klass",
18-
"labware",
19-
"modbus",
20-
"pylabrobot",
21-
"pytest",
22-
"subclassing",
23-
"subresource",
24-
"tadm",
25-
"tiprack",
26-
"usascientific",
27-
"websockets"
28-
],
294
"python.linting.mypyEnabled": true,
305
"python.linting.enabled": true,
316
"python.testing.pytestArgs": ["."],

_typos.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[default]
2+
extend-ignore-identifiers-re = [
3+
"AttributeID.*Supress.*",
4+
]
5+
6+
[default.extend-identifiers]
7+
AttributeIDSupressMenu = "AttributeIDSupressMenu"
8+
9+
[default.extend-words]
10+
# words that should not be corrected
11+
dot_acn = ".acn"
12+
dot_fot = ".fot"
13+
dot_ist = ".ist"
14+
OT = "OT"
15+
ot = "ot"
16+
ser = "ser"
17+
ba = "ba"
18+
nd = "nd"
19+
PN = "PN"
20+
tro = "tro"
21+
FO = "FO"
22+
UE = "UE"
23+
24+
[files]
25+
extend-exclude = [
26+
"*.ipynb"
27+
]

docs/contributor_guide/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ It is recommend that you use VSCode, as we provide a workspace config in `/.vsco
1717
Some VSCode Extensions I'd recommend:
1818

1919
- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
20-
- [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
20+
- [Typos Checker](https://github.com/tekumara/typos-lsp)
2121
- [mypy](https://marketplace.visualstudio.com/items?itemName=matangover.mypy)
2222

2323
## Testing, linting, formatting

docs/resources/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If you cannot find something, please contribute what you are looking for!
152152
</ul>
153153
<p>As a result, many automation software systems believe that it is impossible to reuse resource definitions.
154154
In contrast, PyLabRobot is convinced that carefully created resource definitions combined with smart automation can be reused most of the time.</p>
155-
<p>PLR is actively addressing these resource resuse constraints in numerous ways:</p>
155+
<p>PLR is actively addressing these resource reuse constraints in numerous ways:</p>
156156
<ul>
157157
<li>Development of self-correcting machine backend methods.</li>
158158
<li>Using Coordinate Measurement Machine-based generation of resource "ground truths" (e.g., via liquid handler-based resource probing or 3D scanning).</li>

docs/resources/library/eppendorf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Company page: [Eppendorf Wikipedia](https://en.wikipedia.org/wiki/Eppendorf_(com
1212

1313
| Description | Image | PLR definition |
1414
|--------------------|--------------------|--------------------|
15-
| 'Eppendorf_96_wellplate_250ul_Vb'<br>Part no.: 0030133374<br>[manufacturer website](https://www.eppendorf.com/gb-en/Products/Laboratory-Consumables/Plates/Eppendorf-twintec-PCR-Plates-p-0030133374) <br><br> - Material: polycarbonate (frame), polypropylene (wells)<br> - part of the twin.tec(R) product line<br> - WARNING: not ANSI/SLAS 1-2004 footprint dimenions (123x81 mm^2!) ==> requires `PlateAdapter`<br> - 'Can be divided into 4 segments of 24 wells each to prevent waste and save money'. | ![](img/eppendorf/Eppendorf_96_wellplate_250ul_Vb_COMPLETE.png) ![](img/eppendorf/Eppendorf_96_wellplate_250ul_Vb_DIVIDED.png) | `Eppendorf_96_wellplate_250ul_Vb` |
15+
| 'Eppendorf_96_wellplate_250ul_Vb'<br>Part no.: 0030133374<br>[manufacturer website](https://www.eppendorf.com/gb-en/Products/Laboratory-Consumables/Plates/Eppendorf-twintec-PCR-Plates-p-0030133374) <br><br> - Material: polycarbonate (frame), polypropylene (wells)<br> - part of the twin.tec(R) product line<br> - WARNING: not ANSI/SLAS 1-2004 footprint dimensions (123x81 mm^2!) ==> requires `PlateAdapter`<br> - 'Can be divided into 4 segments of 24 wells each to prevent waste and save money'. | ![](img/eppendorf/Eppendorf_96_wellplate_250ul_Vb_COMPLETE.png) ![](img/eppendorf/Eppendorf_96_wellplate_250ul_Vb_DIVIDED.png) | `Eppendorf_96_wellplate_250ul_Vb` |
1616

1717
## Tubes
1818

docs/resources/library/porvair.md

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

33
Company history: [Porvair Filtration Group](https://www.porvairfiltration.com/about/our-history/)
44

5-
> Porvair Filtration Group, a wholly owned subsidiary of Porvair plc, is a specialist filtration and environmental technology group involved in developing, designing and manufacturing filtration and separation solutions to industry sectors such as the aviation, molten metal, energy, water treatment and life sciences markets. Porvair plc is a publically owned company with four principal subsidiaries: Porvair Filtration Group Ltd., Porvair Sciences Ltd., Selee Corporation and Seal Analytical Ltd.
5+
> Porvair Filtration Group, a wholly owned subsidiary of Porvair plc, is a specialist filtration and environmental technology group involved in developing, designing and manufacturing filtration and separation solutions to industry sectors such as the aviation, molten metal, energy, water treatment and life sciences markets. Porvair plc is a publicly owned company with four principal subsidiaries: Porvair Filtration Group Ltd., Porvair Sciences Ltd., Selee Corporation and Seal Analytical Ltd.
66
77
## Plates
88

docs/user_guide/00_liquid-handling/hamilton-star/96head.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"source": [
2121
"## Example: Hamilton STARLet\n",
2222
"\n",
23-
"Here, we'll use a Hamilton STARLet as an example. For other robots, simply change the deck layout, makign sure that you have at least a tip rack and a plate to use."
23+
"Here, we'll use a Hamilton STARLet as an example. For other robots, simply change the deck layout, making sure that you have at least a tip rack and a plate to use."
2424
]
2525
},
2626
{

docs/user_guide/00_liquid-handling/hamilton-star/hardware/replacing-iswap.md

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

33
This guide provides instructions for replacing the iSWAP arm on a Hamilton STAR liquid handling system.
44

5-
Caution/Disclaimer:
5+
Caution/Disclaimer:
66
1. This procedure is a work in progress and the user assumes all responsibility for any damage that may be done as a result.
77
2. This procedure should not be performed on any system that are either under the OEM Warranty period or currently on a service contract with the OEM or any third party service organization. This will certainly void the OEM Warranty/Service contract and likely invalidate any service agreement with third parties.
88
3. This procedure DOES NOT encapsulate the entire OEM adjustment procedure which includes specialized tooling and software to perform. Consult [iSWAP Auto Adjustment Guide](adjusting-iswap.md) for auto-calibrating arm after installation proceduce.
@@ -39,9 +39,9 @@ Note: Due to the way the iSWAP is taught, the calibration positions from machine
3939

4040
## Attaching the New iSWAP Arm and rough leveling
4141

42-
6. Place the replacement arm on the system, insert and tighten the two fixing screws, reattach the comunication and Y-drive ribon cables.
42+
6. Place the replacement arm on the system, insert and tighten the two fixing screws, reattach the communication and Y-drive ribon cables.
4343

44-
Note: Once physically installed on the system it is recomended that you level the arm in relation to the deck.
44+
Note: Once physically installed on the system it is recommended that you level the arm in relation to the deck.
4545

4646
7. Loosen the two fixing screws until the iSWAP is fixed in position but can still be rotated about the X Axis (left to right) of the machine.
4747
8. Manually position the X-Arm in the center of the machine and the iSWAP in the middle of the X-Arm.

0 commit comments

Comments
 (0)