Skip to content

Commit

Permalink
Merge branch 'master' into open_the_popup_portrait_on_a_specific_page
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 30, 2024
2 parents 857ba61 + 7a9f947 commit d02d0c8
Show file tree
Hide file tree
Showing 62 changed files with 937 additions and 297 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ replace_string:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ci:
autoupdate_schedule: monthly
autofix_prs: true

repos:
# Codespell hook configuration
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: Spell Check with Codespell
args:
- '--write-changes'
- '--ignore-words-list=cppp,normale'
- '--builtin=en-GB_to_en-US'
# Exclude package-lock.json and all .svg files
exclude: 'package-lock\.json|\.svg$'
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,29 @@ $ GIT_USER=<Your GitHub username> yarn deploy
```

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.

### Pre-commit Hook Setup

To ensure code quality and consistency, we use `pre-commit` hooks. Here's how to set up and run the pre-commit hook locally:

1. **Install pre-commit:**

If `pre-commit` isn't already installed, you can install it using `pip`:

```bash
$ pip install pre-commit
```
2. **Install the pre-commit hooks:**

Once `pre-commit` is installed, set up the hooks for the repository by running:

```bash
$ pre-commit install
```
3. **Run pre-commit hooks manually:**

To run the `pre-commit` hooks on all files manually, use:

```bash
$ pre-commit run --all-files
```
Loading

0 comments on commit d02d0c8

Please sign in to comment.