Skip to content

Commit 074c0a1

Browse files
ianthomas23martinRenou
authored andcommitted
Add codespell to pre-commit
Signed-off-by: Ian Thomas <[email protected]>
1 parent 7ca2f0b commit 074c0a1

18 files changed

+27
-18
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@ repos:
6161
- "types-Pygments>=2.17"
6262
- "types-colorama>=0.4.15.12"
6363
- "types-setuptools>=69"
64+
- repo: https://github.com/codespell-project/codespell
65+
rev: v2.2.6
66+
hooks:
67+
- id: codespell
68+
additional_dependencies:
69+
- tomli

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jupyter labextension develop . --overwrite
8989
```
9090

9191
Note for developers: the `--symlink` argument on Linux or OS X allows one to modify the JavaScript code in-place. This feature is not available with Windows.
92-
`
9392

9493
## Contributions
9594

examples/Column Width Auto-Fit.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"### `ipydatagrid` supports auto-fitting of column widths!\n",
99
"\n",
1010
"The DataGrid constructor can take the following arguments:\n",
11-
"1. `auto_fit_columns`: boolean, indicates whether to auot-fit column widths. Setting to False will reset all column sizes to `base_column_size`.\n",
11+
"1. `auto_fit_columns`: boolean, indicates whether to auto-fit column widths. Setting to False will reset all column sizes to `base_column_size`.\n",
1212
"2. `auto_fit_params` : dict, allows for more granular customisation of the auto-fitting algorithm:\n",
1313
" * `area`: select which section of the grid to apply auto-fitting on. Possible options are `all`, `row-header` (index column) and `body`.\n",
1414
" * `padding`: specifies how much padding should be added to the width of each column after resizing (default 30) \n",

examples/ConditionalFormatting.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
" }\n",
170170
")\n",
171171
"\n",
172-
"# Formatting the values in column 1 based on the value of the silbing row in column 2\n",
172+
"# Formatting the values in column 1 based on the value of the sibling row in column 2\n",
173173
"def format_based_on_other_column(cell):\n",
174174
" return \"green\" if cell.metadata.data[\"Column 2\"] > 0.0 else \"yellow\"\n",
175175
"\n",

examples/DataGrid.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
"cell_type": "markdown",
193193
"metadata": {},
194194
"source": [
195-
"# Perfomance test: A million cells with ipydatagrid"
195+
"# Performance test: A million cells with ipydatagrid"
196196
]
197197
},
198198
{

examples/Themes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"14. `header_selection_border_color`: border color of headers intersecting with selected area at column or row\n",
3535
"15. `cursor_fill_color`: fill color of cursor\n",
3636
"16. `cursor_border_color`: border color of cursor\n",
37-
"17. `scroll_shadow` : Dict of color parameters for scroll shadow (vertical and horizontal). Takes three paramaters:\n",
37+
"17. `scroll_shadow` : Dict of color parameters for scroll shadow (vertical and horizontal). Takes three parameters:\n",
3838
" * `size` : size of shadow in pixels\n",
3939
" * `color1` : gradient color 1\n",
4040
" * `color2` : gradient color 2\n",

ipydatagrid/datagrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class DataGrid(DOMWidget):
316316
cursor_fill_color : fill color of cursor
317317
cursor_border_color : border color of cursor
318318
scroll_shadow : Dict of color parameters for scroll shadow (vertical and
319-
horizontal). Takes three paramaters:
319+
horizontal). Takes three parameters:
320320
size : size of shadow in pixels
321321
color1 : gradient color 1
322322
color2 : gradient color 2

js/core/filterMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export class InteractiveFilterDialog extends BoxPanel {
351351

352352
this.userInteractedWithDialog = false;
353353

354-
// Determines whether we should or not tick the "Select all" chekcbox
354+
// Determines whether we should or not tick the "Select all" checkbox
355355
this.updateSelectAllCheckboxState();
356356

357357
// Update styling on unique value grid

js/core/gridContextMenu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export abstract class GridContextMenu {
2525
}
2626

2727
/**
28-
* Opens the context menu in reponse to the `cellClick` signal of the
28+
* Opens the context menu in response to the `cellClick` signal of the
2929
* data grid.
3030
*
3131
* @param grid - The "sender" of the signal.
@@ -74,7 +74,7 @@ export namespace GridContextMenu {
7474
*/
7575
export class FeatherGridContextMenu extends GridContextMenu {
7676
/**
77-
* Opens the context menu in reponse to the `cellClick` signal of the
77+
* Opens the context menu in response to the `cellClick` signal of the
7878
* data grid.
7979
*
8080
* @param grid - The "sender" of the signal.

js/core/transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export namespace Transform {
2929
*/
3030
export type Filter = {
3131
/**
32-
* A type alias for this trasformation.
32+
* A type alias for this transformation.
3333
*/
3434
type: 'filter';
3535

@@ -39,7 +39,7 @@ export namespace Transform {
3939
columnIndex: number;
4040

4141
/**
42-
* The operator for this trasformation.
42+
* The operator for this transformation.
4343
*/
4444
operator: FilterOperator;
4545

0 commit comments

Comments
 (0)