forked from YuuzukiRin/nonebot_plugin_impart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (42 loc) · 882 Bytes
/
justfile
File metadata and controls
54 lines (42 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
set windows-shell := ["powershell", "-NoProfile", "-Command"]
# 默认任务列表
default:
@just --list
# 运行 nonebot
run:
uv run nb run --reload
# 运行测试
test:
uv run pytest -n auto
# 版本发布(更新版本号、更新 lock 文件)
bump:
uv run cz bump
uv lock
git push --tags
# 生成 changelog
changelog:
uv run git-cliff --latest
# 代码检查
lint:
uv run ruff check . --fix
# 代码格式化
format:
uv run ruff format .
# 类型检查
check:
uv run basedpyright
# 安装 pre-commit hooks
hooks:
uv run prek install
# 更新 pre-commit hooks
update:
uv run prek auto-update
# 从 dev 向 main 创建 PR
pr:
gh pr create --base main --fill
gh pr view --web
# PR 合并后强制同步到 main
sync:
git fetch origin
git reset --hard origin/main
git push origin --force-with-lease