Skip to content

Commit da100db

Browse files
committed
Add prettier as a pre-commit hook
1 parent adbaa2d commit da100db

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ repos:
55
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
8+
name: 🧹 Remove trailing whitespace
89
- id: end-of-file-fixer
10+
name: 🧹 Ensure files end with a newline
911
- id: check-yaml
12+
name: 🐍 Validate YAML files
1013
- id: check-added-large-files
14+
name: 🚫 Prevent adding large files
15+
16+
- repo: local
17+
hooks:
18+
- id: prettier
19+
name: 💄 Format files with Prettier
20+
language: system
21+
types_or: [css, javascript, json, markdown, yaml, scss]
22+
entry: npx prettier --write --ignore-unknown

_posts/guides/interactive-blog/2025-02-13-interactive-julia-plotting.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,16 @@ We have seen how to create interactive plots using WGLMakie.jl and Bonito.jl. Th
101101
great way to engage your readers and make your blog posts more interactive. I hope you
102102
found this tutorial useful and that you will start adding interactive plots to your blog!
103103

104-
105104
{% alert note %}
106105
This blog was tested with:
106+
107107
```yaml
108108
Status `~/dev/projects/2026/langestefan.github.io/Project.toml`
109-
[824d6782] Bonito v4.2.0
110-
[5ae59095] Colors v0.13.1
111-
[5789e2e9] FileIO v1.18.0
112-
[1dea7af3] OrdinaryDiffEq v6.108.0
113-
[276b4fcb] WGLMakie v0.13.8
109+
[824d6782] Bonito v4.2.0
110+
[5ae59095] Colors v0.13.1
111+
[5789e2e9] FileIO v1.18.0
112+
[1dea7af3] OrdinaryDiffEq v6.108.0
113+
[276b4fcb] WGLMakie v0.13.8
114114
```
115+
115116
{% endalert %}

0 commit comments

Comments
 (0)