doc: use uv run --isolated for other-Python test runs
A bare `uv run --python 3.8` rebuilds the project .venv on 3.8, after which the pre-commit hook (pre-commit-hooks needs >=3.9) fails on commit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ uv sync # .venv with the package (editable) + dev group
|
||||
uv run pytest # full suite (testpaths = tests)
|
||||
uv run pytest tests/cfg/test_cfg.py::TestConfig_e2e::test_uses_spec_as_defaults # single test
|
||||
uv run pytest -k "<keyword>"
|
||||
uv run --python 3.8 pytest # any supported Python; uv.lock forks per version
|
||||
uv run --isolated --python 3.8 pytest # any supported Python, without switching .venv
|
||||
|
||||
uv run ruff check --fix # lint + import sorting (config in pyproject.toml)
|
||||
uv run ruff format # formatter, line length 88
|
||||
|
||||
Reference in New Issue
Block a user