Skip to content

Commit a6c32b3

Browse files
feat: pre-commit 설정을 추가하다
- 커밋전에 포멧과 잘못된 부분들을 수정할 수 있도록 pre-commit 을 추가함.
1 parent d46e4dd commit a6c32b3

File tree

4 files changed

+149
-11
lines changed

4 files changed

+149
-11
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.12.5
4+
hooks:
5+
- id: ruff-check
6+
args: [--fix]
7+
- id: ruff-format
8+
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v5.0.0
11+
hooks:
12+
- id: check-merge-conflict
13+
- id: check-toml
14+
- id: check-yaml
15+
- id: detect-private-key
16+
- id: end-of-file-fixer
17+
- id: mixed-line-ending
18+
- id: pretty-format-json
19+
args: [--autofix]
20+
- id: trailing-whitespace

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
```bash
88
git submodule update --init --recursive
9+
pre-commit install
910
```
1011

1112
## Pelican 명령어

pyproject.toml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@
22
name = "ujuc.github.io"
33
version = "2.0.0"
44
description = "blog"
5+
readme = "README.md"
6+
requires-python = ">= 3.13"
57
authors = [{ name = "sungjin.kang", email = "[email protected]" }]
68
dependencies = [
7-
"pendulum>=3.1.0",
8-
"pelican>=4.11.0",
9-
"markdown>=3.8",
10-
"rich>=14.0.0",
11-
"cleo>=2.1.0",
12-
"markdown-mermaidjs>=2.0.0",
9+
"cleo>=2.1.0",
10+
"markdown-mermaidjs>=2.0.0",
11+
"markdown>=3.8",
12+
"pelican>=4.11.0",
13+
"pendulum>=3.1.0",
14+
"pre-commit>=4.2.0",
15+
"rich>=14.0.0",
16+
]
17+
18+
[project.scripts]
19+
cli = "cli.main:run"
20+
21+
[dependency-groups]
22+
dev = [
23+
"pre-commit>=4.2.0",
1324
]
14-
readme = "README.md"
15-
requires-python = ">= 3.13"
1625

1726
[build-system]
1827
requires = ["hatchling"]
@@ -27,6 +36,3 @@ packages = ["cli"]
2736
[tool.rye]
2837
managed = true
2938
dev-dependencies = []
30-
31-
[project.scripts]
32-
cli = "cli.main:run"

uv.lock

Lines changed: 111 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)