refactor(uv): make uv usage idiomatic (hatchling, dependency-groups, Docker, docs) - #16
Merged
Merged
Conversation
…Docker, docs) - build: setuptools -> hatchling (pyproject.toml:1) with tool.hatch.build, tool.uv.managed + default-groups - deps: optional-dependencies.dev -> dependency-groups.dev (PEP 735) as canonical, keep pip [dev] extra as fallback; uv sync --frozen --extra dev -> uv sync --frozen (default-groups) (README.md:105, ci.yml:27) - pytest: remove global --cov from addopts (pyproject.toml:140) -> CI-only --cov (ci.yml:30); local uv run pytest -q works without pytest-cov - python: .python-version 3.12 -> 3.12.13 pinned (reproducible) - gitignore: drop tests/* + !test_latest_compat.py (was hiding new tests) ( .gitignore:41) - docker: pip install . -> uv sync --frozen --no-group dev on ghcr.io/astral-sh/uv:python3.12-bookworm-slim with layer-cache (docker/Dockerfile:1) - docs: sync README zh/en, DOCKER_README, ci.yml to new workflow; uv lock regenerated
FSoft-AI4Code/CodeWiki#89 bumped checkout@v4->v5 and setup-python@v5->v6 for Node 20 EOL. Apply checkout bump to CodeWiki-Plus (setup-uv already v6). Also remove tracked .DS_Store (now .gitignore'd at .gitignore:77). No input changes; fetch-depth and runner support unchanged (Node 24 requires runner v2.327.1+).
develop 在 merge-base 后新增 !tests/test_review_changes.py 例外(依附于 tests/* 规则)。按 PR mambo-wang#16 意图(stop ignoring tests/),tests 规则与 两个例外一并删除,tests/ 下所有文件均被 git 跟踪。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #15:
uv.lockwas added but usage stayed half-migrated — Docker and CI still usedpip/--extra, docs were fragile and reproducibility was not pinned.Goal: make the repo idiomatically
uv-native while keepingpipas fallback.Changes
setuptools→hatchling(uv-recommended, faster, auto-discovers packages)pip --extra dev→dependency-groups(PEP 735) withtool.uv.default-groups;pip install -e .[dev]still works--covfromaddopts→ CI-only coverage, souv run pytest -qworks without-o addopts="".python-versionto3.12.13for reproducible dev;requires-python >=3.12unchanged so 3.13+ still supportedtests/(was hiding new tests)pip install→uv sync --frozen --no-group devonghcr.io/astral-sh/uv:python3.12-bookworm-slimwith layer cacheactions/checkout@v4→v5(Node 24) + sync README/CI/Docker docs; removed tracked.DS_StoreNo change for
pip install codewiki-plususers.