Skip to content

Commit d02d0c8

Browse files
Merge branch 'master' into open_the_popup_portrait_on_a_specific_page
2 parents 857ba61 + 7a9f947 commit d02d0c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+937
-297
lines changed

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ replace_string:
6969
steps:
7070
- name: Deploy to GitHub Pages
7171
id: deployment
72-
uses: actions/deploy-pages@v4
72+
uses: actions/deploy-pages@v4

.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+
```

0 commit comments

Comments
 (0)