Skip to content

Commit

Permalink
add codespell workflow, config and get it to fix some found typos (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic authored Jan 5, 2024
1 parent 3a94e6b commit 9fd255e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,*.pdf,*.svg,*.css,.codespellrc
check-hidden = true
ignore-regex = ^\s*"image/\S+": ".*
# ignore-words-list =
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion docs/tutorials/BEADL.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,6 @@
</xs:complexType>

<xs:complexType name="BeadlEditorType">
<!-- Not implemented yet, should just have a placeholde for an SVG!?! -->
<!-- Not implemented yet, should just have a placeholder for an SVG!?! -->
</xs:complexType>
</xs:schema>
2 changes: 1 addition & 1 deletion docs/tutorials/babl_example_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@
"# Get the StatesTable from file\n",
"states = read_nwbfile.get_acquisition(\"task_recording\").states\n",
"\n",
"# Compute the transition count and probablity matrix\n",
"# Compute the transition count and probability matrix\n",
"state_transition_count_df, state_transition_probability_df = compute_state_transition_matrix(states=states, state_types=state_types)"
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/pynwb/ndx_beadl/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def plot_events(events: Union[EventsTable, pd.DataFrame],
:param y_offset: Offset in the y axis to use. This is used to shift the plot when combining multiple
plots, e.g., an events and actions plot, in the same figure.
:param keep_yticks: When combining with other plots (e.g,. events, actions, or states), we may want to
keep the text and location of existing ytick lables. (Default=False)
keep the text and location of existing ytick labels. (Default=False)
:param fig: Matplotlib figure. If None then create a new figure, otherwise assume that a figure exists.
(Default=None, i.e., create a new figure)
Expand Down Expand Up @@ -119,7 +119,7 @@ def plot_actions(actions: Union[ActionsTable, pd.DataFrame],
:param y_offset: Offset in the y axis to use. This is used to shift the plot when combining multiple
plots, e.g., an events and actions plot, in the same figure.
:param keep_yticks: When combining with other plots (e.g,. events, actions, or states), we may want to
keep the text and location of existing ytick lables. (Default=False)
keep the text and location of existing ytick labels. (Default=False)
:param fig: Matplotlib figure. If None then create a new figure, otherwise assume that a figure exists.
(Default=None, i.e., create a new figure)
Expand Down Expand Up @@ -189,7 +189,7 @@ def plot_states(states: Union[StatesTable, pd.DataFrame],
:param y_offset: Offset in the y axis to use. This is used to shift the plot when combining multiple
plots, e.g., an events and actions plot, in the same figure.
:param keep_yticks: When combining with other plots (e.g,. events, actions, or states), we may want to
keep the text and location of existing ytick lables. (Default=False)
keep the text and location of existing ytick labels. (Default=False)
:param fig: Matplotlib figure. If None then create a new figure, otherwise assume that a figure exists.
(Default=None, i.e., create a new figure)
Expand Down
2 changes: 1 addition & 1 deletion src/pynwb/tests/BEADL.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,6 @@
</xs:complexType>

<xs:complexType name="BeadlEditorType">
<!-- Not implemented yet, should just have a placeholde for an SVG!?! -->
<!-- Not implemented yet, should just have a placeholder for an SVG!?! -->
</xs:complexType>
</xs:schema>

0 comments on commit 9fd255e

Please sign in to comment.