Skip to content

Commit 95b1ff8

Browse files
authored
Merge pull request #121 from yarikoptic/enh-codespell
MAINT: Add codespell and make it fix some typos
2 parents 5d8a23c + e5f0bab commit 95b1ff8

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

.github/workflows/codespell.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Codespell configuration is within pyproject.toml
2+
---
3+
name: Codespell
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
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: Codespell
23+
uses: codespell-project/actions-codespell@v2

.maint/update_changes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#
33
# Collects the pull-requests since the latest release and
4-
# aranges them in the CHANGES.rst.txt file.
4+
# arranges them in the CHANGES.rst.txt file.
55
#
66
# This is a script to be run before releasing a new version.
77
#

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
24.1.0 (March 15, 2024)
22
=======================
3-
Minor relase updating *PyBIDS*'s configuration to enable new entities
3+
Minor release updating *PyBIDS*'s configuration to enable new entities
44
that allow the selection of recently added *FreeSurfer*'s surface parcellations in
55
`templateflow/tpl-fsaverage#5 <https://github.com/templateflow/tpl-fsaverage/pull/5>`__.
66

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ of any available template set.
3434
The lazy-loading implementation of the client requires some folder on the host
3535
where template resources can be stored (therefore, write permissions are
3636
required). By default, the home folder will be ``$HOME/.cache/templateflow``.
37-
This setting can be overriden by defining the environment variable ``TEMPLATEFLOW_HOME``
37+
This setting can be overridden by defining the environment variable ``TEMPLATEFLOW_HOME``
3838
before running the client, for example::
3939

4040
$ export TEMPLATEFLOW_HOME=$DATA/.templateflow

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,11 @@ inline-quotes = "single"
178178
"docs/sphinxext/github_link.py" = ["BLE001"]
179179

180180
[tool.ruff.format]
181-
quote-style = "single"
181+
quote-style = "single"
182+
183+
[tool.codespell]
184+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
185+
skip = '.git,*.pdf,*.svg,venvs,*.css'
186+
check-hidden = true
187+
# ignore-regex = ''
188+
# ignore-words-list = ''

0 commit comments

Comments
 (0)