Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,26 @@ jobs:
- uses: crate-ci/typos@master

test:
name: Test
runs-on: ${{ matrix.os }}
name: Coverage
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
concurrency:
group: test-coverage-${{ github.ref }}-${{ matrix.python-version }}-${{ matrix.os }}
# group: test-coverage-${{ github.ref }}-${{ matrix.python-version }}-${{ matrix.os }}
group: coverage-${{ github.ref }}-${{ matrix.python-version }}
cancel-in-progress: true

strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
# os: [ubuntu-latest, windows-latest, macos-latest]
# pydantic-version: ["v1", "v2"]

env:
OS: ${{ matrix.os }}
# OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
UV_NO_SYNC: 1

Expand All @@ -60,11 +62,11 @@ jobs:
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
env_vars: OS,PYTHON
env_vars: PYTHON
use_oidc: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
env_vars: OS,PYTHON
use_oidc: true
env_vars: PYTHON
use_oidc: true
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_install_hook_types: [pre-commit, prepare-commit-msg]
default_install_hook_types: [pre-commit]
ci:
autofix_commit_msg: ":rotating_light: auto fix by pre-commit hooks"
autofix_prs: true
Expand All @@ -7,16 +7,10 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
rev: v0.14.3
hooks:
- id: ruff-check
args: [--fix]
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]

# - repo: https://github.com/nonebot/nonemoji
# rev: v0.1.4
# hooks:
# - id: nonemoji
# stages: [prepare-commit-msg]
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,17 @@ possible values: major, minor, patch, stable, alpha, beta, rc, post, dev
uv tool install pre-commit

pre-commit install
或使用 `prek`

prek install
添加到暂存区

git add <待提交文件>
使用 `nonemoji` 编辑 `commit message` 并**提交**

nonemoji

仓库地址: [nonemoji](https://github.com/nonebot/nonemoji)
仓库地址:
- [`nonemoji`](https://github.com/nonebot/nonemoji)
- [`prek`](https://github.com/j178/prek)
</details>
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ dependencies = [
"nonebot-plugin-localstore>=0.7.4,<1.0.0", # 存储文件
"nonebot-plugin-apscheduler>=0.5.0,<1.0.0", # 定时任务

"nonebot-plugin-uninfo>=0.9.0,<1.0.0", # 多平台用户信息获取
"nonebot-plugin-alconna>=0.59.4,<1.0.0", # 跨平台命令解析拓展
"nonebot-plugin-uninfo>=0.10.0,<1.0.0", # 多平台用户信息获取
"nonebot-plugin-alconna>=0.60.0,<1.0.0", # 跨平台命令解析拓展
# "nonebot-adapter-onebot>=2.4.6,<3.0.0"

"httpx>=0.27.0,<1.0.0",
Expand All @@ -27,10 +27,8 @@ Issues = "https://github.com/owner/nonebot-plugin-template/issues"
[dependency-groups]
dev = [
"nonebot2[fastapi]>=2.4.2,<3.0.0",
"ruff>=0.13.2,<1.0.0",
"nonemoji>=0.1.4,<1.0.0",
"pre-commit>=4.3.0",
"bump-my-version>=1.2.3",
"ruff>=0.14.3,<1.0.0",
"bump-my-version>=1.2.4",
]

test = [
Expand All @@ -44,7 +42,7 @@ test = [
]

[tool.uv]
required-version = ">=0.8.14"
required-version = ">=0.9.0"
default-groups = ["test", "dev"]

[tool.nonebot]
Expand Down
Loading
Loading