Skip to content

Conversation

@fllesser
Copy link
Contributor

本来只是想升级 pytest 9 的,不小心改多了(

- Updated README to reflect changes in command options for adding plugins.
- Modified `pyproject.toml` to adjust paths and set minimum pytest version.
- Introduced new module structure in `src/nonebug` with `app.py`, `base.py`, and `fixture.py`.
- Implemented context management for testing in `base.py` and `fixture.py`.
- Created mixins for API testing and process handling in `mixin` directory.
- Added `NoneBugProvider` for matcher management in `provider.py`.
- Updated test files to reflect new import paths and structure.

build: update project configuration.

chore: update project configuration.

chore: update project metadata and dependencies
@yanyongyu
Copy link
Member

还有 devcontainer 没有改

@fllesser
Copy link
Contributor Author

…ersions, and reorder imports.

chore: Replace Poetry with UV for dependency management in devcontainer.

Chore: Rename Codecov workflow job name to 'Test Coverage'.

build: update ruff pre-commit hook to v0.14.6
@fllesser
Copy link
Contributor Author

大概改完了,但是不知道为什么有个测试炸了https://github.com/fllesser/nonebug/actions/runs/19767887172/job/56645035961

Copy link
Member

@yanyongyu yanyongyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python 版本还是保留 3.9 啊,代码都别动

@fllesser
Copy link
Contributor Author

fllesser commented Nov 28, 2025

python 版本还是保留 3.9 啊,代码都别动

pytest 9,3.9 drop 了

@fllesser
Copy link
Contributor Author

额,刚发现 nb 还没 drop 3.9 呢

@yanyongyu
Copy link
Member

只迁移 uv 就行,配置都可以参考 nb 仓库的

This reverts commit 329f1ff.

chore: Lower asgiref dependency minimum and add Python 3.9 to Codecov CI matrix.

chore: adjust project configuration in pyproject.toml

chore: Downgrade nonebot2 to 2.3.0 and remove anyio and exceptiongroup dependencies.
@fllesser
Copy link
Contributor Author

fllesser commented Nov 29, 2025

nonebot2 2.4.x, test_propress 会炸, 指定 matcher 就好了,不知道是什么原因

Copy link
Member

@yanyongyu yanyongyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太多了先看了一部分,ruff isort 的排序结果怎么看着不太对劲啊,把 length sort 删了再试试

@yanyongyu yanyongyu self-requested a review December 1, 2025 14:42
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (c766f85) to head (a1ca10a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #47   +/-   ##
=======================================
  Coverage   92.12%   92.12%           
=======================================
  Files          14       14           
  Lines         495      495           
=======================================
  Hits          456      456           
  Misses         39       39           
Flag Coverage Δ
unittests 92.12% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yanyongyu yanyongyu changed the title 🧑‍💻 Dev: 迁移使用 uv 管理项目依赖 Develop: 迁移使用 uv 管理项目依赖 Dec 4, 2025
@yanyongyu yanyongyu merged commit 864b208 into nonebot:master Dec 4, 2025
10 checks passed
@fllesser fllesser deleted the dev/migrate-uv branch December 5, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants