Skip to content

Commit a290367

Browse files
authored
Configure codespell pre-commit hook for spell checking (#152)
* Configure `codespell` hook * exclude `.svg` * write changes and also exclude `package-lock.json` * Leave out some wanted words * One shot pass caught some typos * A couple of custom corrections * Try to use builtin dictionary * Run hook with builtin dictionary * Delete custom dict * Add a note in README to run pre-commit hooks locally
1 parent 11a99ee commit a290367

File tree

12 files changed

+56
-13
lines changed

12 files changed

+56
-13
lines changed

.pre-commit-config.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ci:
2+
autoupdate_schedule: monthly
3+
autofix_prs: true
4+
5+
repos:
6+
# Codespell hook configuration
7+
- repo: https://github.com/codespell-project/codespell
8+
rev: v2.3.0
9+
hooks:
10+
- id: codespell
11+
name: Spell Check with Codespell
12+
args:
13+
- '--write-changes'
14+
- '--ignore-words-list=cppp,normale'
15+
- '--builtin=en-GB_to_en-US'
16+
# Exclude package-lock.json and all .svg files
17+
exclude: 'package-lock\.json|\.svg$'

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,29 @@ $ GIT_USER=<Your GitHub username> yarn deploy
3939
```
4040

4141
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
42+
43+
### Pre-commit Hook Setup
44+
45+
To ensure code quality and consistency, we use `pre-commit` hooks. Here's how to set up and run the pre-commit hook locally:
46+
47+
1. **Install pre-commit:**
48+
49+
If `pre-commit` isn't already installed, you can install it using `pip`:
50+
51+
```bash
52+
$ pip install pre-commit
53+
```
54+
2. **Install the pre-commit hooks:**
55+
56+
Once `pre-commit` is installed, set up the hooks for the repository by running:
57+
58+
```bash
59+
$ pre-commit install
60+
```
61+
3. **Run pre-commit hooks manually:**
62+
63+
To run the `pre-commit` hooks on all files manually, use:
64+
65+
```bash
66+
$ pre-commit run --all-files
67+
```

src/components/about/Team/Ian.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Ian Thomas is a Scientific Software Developer at QuantStack. He holds a BA in Physics from Oxford University and PhD in ocean modeling from the University of Southampton.
22

3-
He has particular interest in data analysis and visualisation, leaning towards solving mathematical and geometric problems.
3+
He has particular interest in data analysis and visualization, leaning towards solving mathematical and geometric problems.
44

5-
Ian has many years' experience as an open-source contributor. He is a core maintainer of <a href="https://github.com/bokeh/bokeh">Bokeh</a>, a library for interactive visualisation in web browsers, and the lead maintainer of <a href="https://github.com/contourpy/contourpy">ContourPy</a>, a Python/C++ library for calculating contours. He has also made significant contributions to <a href="https://github.com/matplotlib/matplotlib">Matplotlib</a> and <a href="https://github.com/holoviz/datashader">Datashader</a>.
5+
Ian has many years' experience as an open-source contributor. He is a core maintainer of <a href="https://github.com/bokeh/bokeh">Bokeh</a>, a library for interactive visualization in web browsers, and the lead maintainer of <a href="https://github.com/contourpy/contourpy">ContourPy</a>, a Python/C++ library for calculating contours. He has also made significant contributions to <a href="https://github.com/matplotlib/matplotlib">Matplotlib</a> and <a href="https://github.com/holoviz/datashader">Datashader</a>.

src/components/about/Team/Joel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Before joining QuantStack, Joël worked since 2003 in various companies covering a large spectre of domains all dominated by performance constraints: games, embedded software of all sorts, robotics (<a href="https://www.softbankrobotics.com/">Softbank-Robotics/Aldebaran</a>), "heavy" interractive web apps (<a href="https://jellynote.com">https://jellynote.com</a> score player for example)...
1+
Before joining QuantStack, Joël worked since 2003 in various companies covering a large spectre of domains all dominated by performance constraints: games, embedded software of all sorts, robotics (<a href="https://www.softbankrobotics.com/">Softbank-Robotics/Aldebaran</a>), "heavy" interactive web apps (<a href="https://jellynote.com">https://jellynote.com</a> score player for example)...
22

33
Through the years Joël participated to various open-source projects with, in recent years, a particular focus on dependency management for C++ projects (like <a href="https://build2.org">build2</a>) and the <a href="https://webassembly.org/">WebAssembly</a> platform.
44

src/components/about/styles.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
.small_portrait_card:hover {
13-
border: solid 1px grey;
13+
border: solid 1px gray;
1414
cursor: pointer;
1515
text-decoration: #0000EE underline;
1616
}

src/components/blog/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ blog:
538538
authors: Mariana Meireles
539539

540540
- url: https://blog.jupyter.org/a-visual-debugger-for-jupyter-914e61716559
541-
title: A Visual Debuger for Jupyter
541+
title: A Visual Debugger for Jupyter
542542
image: https://miro.medium.com/max/933/0*9pVDg58cTz5Yezw8.gif
543543
summary: Most of the progress made in software projects comes from incrementalism. The ability to quickly see the outcome of an execution and iterate has been one of the main reasons for the success of…
544544
date: Mar 25, 2020

src/components/blog/blogpostsDetails.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@
10281028
},
10291029
{
10301030
"url": "https://blog.jupyter.org/a-visual-debugger-for-jupyter-914e61716559",
1031-
"title": "A Visual Debuger for Jupyter",
1031+
"title": "A Visual Debugger for Jupyter",
10321032
"image": "/img/blogposts/A-Visual-Debuger-for-Jupyter.gif",
10331033
"summary": "Most of the progress made in software projects comes from incrementalism. The ability to quickly see the outcome of an execution and iterate has been one of the main reasons for the success of…",
10341034
"date": "Mar 25, 2020",

src/components/contact/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Contact() {
1717
<ContactIllustration
1818
height={"460px"}
1919
alt={
20-
"Illustration for the contact page with a woman, a mobile phone and an enveloppe."
20+
"Illustration for the contact page with a woman, a mobile phone and an envelope."
2121
}
2222
/>
2323
</div>

src/components/home/Hero/styles.module.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737

3838
.pydata_informations {
39-
color: grey;
39+
color: gray;
4040
font-size: 12px;
4141
font-weight: 600;
4242
position: absolute;
@@ -70,7 +70,7 @@
7070
}
7171

7272
.pydata_informations {
73-
color: grey;
73+
color: gray;
7474
font-size: var(--ifm-font-size-small);
7575
font-weight: 600;
7676
position: absolute;
@@ -132,7 +132,7 @@
132132
}
133133

134134
.pydata_informations {
135-
color: grey;
135+
color: gray;
136136
font-size: var(--ifm-font-size-medium);
137137
font-weight: 600;
138138
position: absolute;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
We created several popular scientific computing packages. XSimd, an unified API for SIMD opreations, adopted by projects such as Apache Arrox, FireFox, Kytra, Pythran... Xtensor, a C++ n-dimensional array librairy with broadcasting and lazy evaluation.
1+
We created several popular scientific computing packages. XSimd, an unified API for SIMD operations, adopted by projects such as Apache Arrox, FireFox, Kytra, Pythran... Xtensor, a C++ n-dimensional array library with broadcasting and lazy evaluation.

src/components/projects/descriptions/Header.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ from data sciences to robotics.
55

66
Open-source development is a unique
77
way to break down collaboration barriers and reach users with
8-
unexpected use cases. Enabling customisation and extensions of the
8+
unexpected use cases. Enabling customization and extensions of the
99
tools enables this diversity of applications.

src/css/custom.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
--ifm-text-color-footer: black;
3131

3232
/*popup overlay*/
33-
--ifm-background-color-popup-overlay: grey;
33+
--ifm-background-color-popup-overlay: gray;
3434

3535
/* Font sizes */
3636
--ifm-font-size-small: 14px;

0 commit comments

Comments
 (0)