Skip to content

Commit 349d8b1

Browse files
Merge pull request #34 from yarikoptic/enh-codespell
Add codespell support (config, workflow to detect/not fix) and make it fix some typos
2 parents 6b3fe06 + 047fb78 commit 349d8b1

File tree

5 files changed

+35
-3
lines changed

5 files changed

+35
-3
lines changed

.github/workflows/codespell.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Codespell configuration is within pyproject.toml
2+
---
3+
name: Codespell
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
codespell:
16+
name: Check for spelling errors
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Annotate locations with typos
23+
uses: codespell-project/codespell-problem-matcher@v1
24+
- name: Codespell
25+
uses: codespell-project/actions-codespell@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ git clone https://github.com/s-ccs/LSLAutoBIDS.git
2323
```
2424
pip3 install lslautobids
2525
```
26-
It is advised to install the package in a seperate environment (e.g. using `conda` or `virtualenv`).
26+
It is advised to install the package in a separate environment (e.g. using `conda` or `virtualenv`).
2727

2828
> [!NOTE]
2929
> If you are using conda, you can create a new conda environment using the following command and activate it.

lslautobids/convert_to_bids_and_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def bids_process_and_upload(processed_files,logger):
448448
val = bids.convert_to_bids(xdf_path,subject_id,session_id, run_id, task_id, stim, logger)
449449

450450
if val == 1:
451-
logger.info("Bids Conversion Sucessful")
451+
logger.info("BIDS Conversion Successful")
452452
elif val == 2:
453453
logger.info("Converted file already found, skipping")
454454
else:

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
[build-system]
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.codespell]
6+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
7+
skip = '.git*,*.svg,*.bib'
8+
check-hidden = true
9+
# ignore-regex = ''
10+
# ignore-words-list = ''

typst/main.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Cognitive neuroscience routinely collect large datasets, yet data integration, m
4949
// set spellcheck language
5050
#set text(lang: "en", region: "US")
5151

52-
// figure caption alighment
52+
// figure caption alignment
5353
#show figure.caption: set align(center)
5454

5555
//#elements.float(align: bottom, [\*Corresponding author])

0 commit comments

Comments
 (0)