Skip to content

Commit 38cd629

Browse files
authored
Fix typos in docs, code and comments and "typos" to pre-commit (#4512)
This package is quite fast and has very low false positives. Given the number typos worth keeping it was able to find, I think it will be quite helpful for it to be part of our pre-commit and lint pipeline. It's quite easy to add new spellings or regex-based ignore rules. The exclusion and typo rules can be add to `pyproject.yml`. Read more at https://github.com/crate-ci/typos
1 parent b57ef63 commit 38cd629

39 files changed

Lines changed: 65 additions & 60 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ repos:
8080
rev: v8.24.3
8181
hooks:
8282
- id: gitleaks
83+
84+
- repo: https://github.com/crate-ci/typos
85+
rev: v1.31.1
86+
hooks:
87+
- id: typos

docs/getting-started/contributing/localization-and-translation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Translate Hypha in to your own language
22

3-
There are two resons organisations make use of translations. They need Hypha in another language, like Spanish or Chinese. Another common need is to translate Hypha to suit a organisations vocabulary. A combination of both works as well of course.
3+
There are two reasons organisations make use of translations. They need Hypha in another language, like Spanish or Chinese. Another common need is to translate Hypha to suit a organisations vocabulary. A combination of both works as well of course.
44

55
Our team is currently using [Weblate](https://weblate.org/) to manage translations of this project. Please visit Hypha's Weblate https://hosted.weblate.org/projects/hypha/ to start the translation process. You will need a Weblate account, and take it from there. [Weblate instructions and related documentation](https://docs.weblate.org/en/latest/user/basic.html) on translation is a great introductory resource. project on Weblate to contribute. If you are experiencing issues while you are working on translations, please open an issue on \[GitHub}.
66

@@ -46,7 +46,7 @@ It is the `django.po` file that contain all the translations. You can start to t
4646

4747
If you already have a translated version, replace that files with the generated one. Make sure the name and path stay the same.
4848

49-
It is then nessesery to complile the .po files in to binary .mo files. This command takes care of that.
49+
It is then necessary to compile the .po files in to binary .mo files. This command takes care of that.
5050

5151
```shell
5252
python manage.py compilemessages --ignore .venv

docs/getting-started/contributing/submitting-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We use pull requests for all changes. No commits are done directly in to the mai
1616

1717
### Creating a new branch from main
1818

19-
First check out main and do a git pull ot get all the latest updates.
19+
First check out main and do a git pull to get all the latest updates.
2020

2121
Then create a new branch and do a checkout of it.
2222

docs/references/accessibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Color was used as the only visual means of conveying information, indicating an
1212
#### Visual presentation
1313
It was noted in the report that the colors of user interface components needed to have more contrast with each other. The contrast of text to background (both for the contrast minimum and contrast enhanced) was increased as a result.
1414

15-
#### Keyboard accessiblity
15+
#### Keyboard accessibility
1616
The report found that almost all functionality of the content is operable through a keyboard interface, but in order to comply with this requirement 100%, `ContentEditable` (text editor) needs to be made accessible with a keyboard.
1717

1818
#### Name, role, value

docs/references/workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Once an application is submitted (`INITIAL_STATE`) — it can transition into th
4545

4646
This workflow is a single stage process with an advisory council review or external review stage -- includes functionalties for external reviewers like advisory board members to access applications and submit reviews.
4747

48-
It is very simlar to the "Request with external review" workflow, see below, but the internal and external review step happens at the same step.
48+
It is very similar to the "Request with external review" workflow, see below, but the internal and external review step happens at the same step.
4949

5050
Beware if you opt to customise the "Reviewer Settings" (in Wagtail admin). Only the "All states" option in the "State" setting will work with this workflow.
5151

docs/setup/administrators/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Be default Hypha looks for a database with the name "hypha". Set `APP_NAME` to c
4242
----
4343
Language code in standard language id format: en, en-gb, en-us
4444

45-
The corrosponding locale dir is named: en, en_GB, en_US
45+
The corresponding locale dir is named: en, en_GB, en_US
4646

4747
LANGUAGE_CODE = env.str('LANGUAGE_CODE', 'en')
4848

docs/setup/deployment/development/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To start the docker containers you use the "up --watch" command. This command yo
5353
docker compose --file docker/compose.yaml up --watch
5454
```
5555

56-
This will run "npm watch" as well as the "runserver_plus". All code changes to hypha will be synced in to the conatiner thanks to the docker watch functionality.
56+
This will run "npm watch" as well as the "runserver_plus". All code changes to hypha will be synced in to the container thanks to the docker watch functionality.
5757

5858
### Access the docker environment
5959

docs/setup/deployment/development/stand-alone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ NOTE: In production media is stored on AWS S3 but for local development you need
9090
uv sync
9191
```
9292

93-
This vill create a `.venv` directory (if it does not exist) and install all python dependencies there.
93+
This will create a `.venv` directory (if it does not exist) and install all python dependencies there.
9494

95-
All `uv …` commands will automatically use this virtual envionment.
95+
All `uv …` commands will automatically use this virtual environment.
9696

9797
If you want other commands to use it you need to run this command to activate it.
9898

docs/user-guides/applications/creating-submisison-application.md renamed to docs/user-guides/applications/creating-submission-application.md

File renamed without changes.

hypha/apply/activity/tests/test_messaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_doesnt_send_a_message_if_not_configured(self):
107107

108108
self.adapter.send_message.assert_not_called()
109109

110-
def test_calls_method_if_avaliable(self):
110+
def test_calls_method_if_available(self):
111111
method_name = "new_method"
112112
return_message = "Returned message"
113113
setattr(self.adapter, method_name, lambda **kw: return_message)

0 commit comments

Comments
 (0)