Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
attajak committed Jan 23, 2025
1 parent 863add9 commit d4e50ac
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
args: ['--allow-multiple-documents']
- id: check-toml
- id: check-json
- id: check-added-large-files
args: ['--enforce-all']
- id: mixed-line-ending
args: ['--fix=auto']
- id: pretty-format-json
args: ['--autofix', '--no-sort-keys']
1 change: 0 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -978,4 +978,3 @@ disableThemeInject = false
[page.seo.publisher]
name = ""
logoUrl = ""

2 changes: 1 addition & 1 deletion config/_default/sitemap.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
priority = 0.5
2 changes: 1 addition & 1 deletion content/posts/hacker-keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ auto-complete - auto-complete

เวอร์ชัน Pro - Pro version

**ที่มา:** Google Gemini
**ที่มา:** Google Gemini
2 changes: 1 addition & 1 deletion content/posts/swiftkey-keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ SwiftKey Keyboard เป็นแป้นพิมพ์ AI ที่ยอด

**ที่มา:** [Microsoft Copilot](https://copilot.microsoft.com)

![Swiftkey-Keyboard](https://attajak.github.io/assets/images/swiftkey-keyboard/swiftkey-keyboard.png)
![Swiftkey-Keyboard](https://attajak.github.io/assets/images/swiftkey-keyboard/swiftkey-keyboard.png)

0 comments on commit d4e50ac

Please sign in to comment.