Skip to content

Commit 4b51065

Browse files
authored
Merge pull request #165 from yarikoptic/enh-codespell
Codespell: workflow, condig + some typos fixed
2 parents b9646cb + 9068332 commit 4b51065

File tree

10 files changed

+32
-10
lines changed

10 files changed

+32
-10
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg
3+
# ignore-words-list =

.github/workflows/codespell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
codespell:
12+
name: Check for spelling errors
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Codespell
19+
uses: codespell-project/actions-codespell@v1

docs/source/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Is The Labbing Project only suitable for MRI-based neuroscientific research?
2222

2323
Not at all! The purpose of the :mod:`research` app is to provide common,
2424
generic models (such as :class:`~research.models.subject.Subject` and
25-
:class:`~research.models.study.Study`) that may be associted with any number of
25+
:class:`~research.models.study.Study`) that may be associated with any number of
2626
data models originating from any number of reusable apps.
2727

2828
How are different data types integrated into the application's database?

external_tables/models/sync_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def sync(self) -> None:
5959
@property
6060
def df(self) -> pd.DataFrame:
6161
"""
62-
Returs the :class:`SyncTable` as a dataframe.
62+
Returns the :class:`SyncTable` as a dataframe.
6363
6464
Returns
6565
-------

plots/series/series_viewer/utils/figures_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def create_image_model(self, plane: Plane) -> Image:
7171
Returns
7272
-------
7373
Image
74-
The created Image instace for the given plot.
74+
The created Image instance for the given plot.
7575
"""
7676

7777
plot = self.figures[plane].image(

plots/series/series_viewer/utils/widgets_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def toggle_index_sliders_visibility(self, active: bool):
144144
Parameters
145145
----------
146146
active : bool
147-
Index sliders' visiblity toggle button state.
147+
Index sliders' visibility toggle button state.
148148
"""
149149

150150
for slider in self.index_sliders.values():
@@ -171,7 +171,7 @@ def toggle_range_sliders_visibility(self, active: bool):
171171
Parameters
172172
----------
173173
active : bool
174-
Range sliders' visiblity toggle button state.
174+
Range sliders' visibility toggle button state.
175175
"""
176176

177177
for slider in self.range_sliders.values():
@@ -211,7 +211,7 @@ def create_palette_select(self) -> Select:
211211

212212
def create_visibility_checkbox(self) -> CheckboxButtonGroup:
213213
"""
214-
Toggles crosshair and axes visiblity on or off.
214+
Toggles crosshair and axes visibility on or off.
215215
216216
Returns
217217
-------

pylabber/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
LOGIN_REDIRECT_URL = "/"
152152
LOGOUT_REDIRECT_URL = "/"
153153

154-
# Password strengh validation
154+
# Password strength validation
155155
VALIDATION_MODULE = "django.contrib.auth.password_validation"
156156
SIMILARITY_VALIDATOR = f"{VALIDATION_MODULE}.UserAttributeSimilarityValidator"
157157
MINIMUM_LENGTH_VALIDATOR = f"{VALIDATION_MODULE}.MinimumLengthValidator"

pylabber/views/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class StandardResultsSetPagination(PageNumberPagination):
77
when implemented as part of the defaults mixin and therefore was moved
88
to this class, which is meant to be set in the
99
`ViewSets <https://www.django-rest-framework.org/api-guide/viewsets/>`_'
10-
*pagination_class* attribue definition, or in the REST_FRAMEWORK definition
10+
*pagination_class* attribute definition, or in the REST_FRAMEWORK definition
1111
within settings.py. For much information see
1212
`the DRF documentation <https://www.django-rest-framework.org/api-guide/pagination/#modifying-the-pagination-style>`_.
1313

research/tests/models/test_subject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_get_personal_information(self):
9999
# result = self.test_subject.get_personal_information()
100100
# result = result[[item for item in ]]
101101

102-
# excpected = {
102+
# expected = {
103103
# ("Anonymized", "Patient ID"): "ABC123",
104104
# ("Anonymized", "First Name"): "Noam",
105105
# ("Anonymized", "Last Name"): "Aharony",

research/views/study.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Definintion of the :class:`StudyViewSet` class.
2+
Definition of the :class:`StudyViewSet` class.
33
"""
44
from typing import Tuple
55

0 commit comments

Comments
 (0)