首页/ AI 技能 / @skilllib/skill-2014279374084714498
Skill站外收录 @skilllib/skill-2014279374084714498

dev_environment

为代码编写与测试构建可复现的本地开发环境,支持基于指定 Python 版本创建和复用虚拟环境,通过 uv 或 pip 安装 NiMARE 可编辑版本及全部依赖,并验证安装有效性。

0.0 (0) 742 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Setting Up a Development Environment Use a reproducible, project-local environment and install NiMARE in editable mode so code changes are immediately available when running tests or examples. ## Creating or reusing an environment - Prefer a local virtual environment (e.g., `.venv`) in the repository root; reuse it if it already exists. - Use a supported Python version (`>=3.10`) consistent with `docs/installation.rst`. - If no `.venv` exists, create and activate one: ```bash python3 -m venv .venv source .venv/bin/activate ``` - When installing dependencies, try `uv pip install ...` first to keep installs fast and deterministic. - If `uv` is unavailable or fails, fall back to `.venv/bin/python -m pip install ...`. ## Installing NiMARE for development - Install NiMARE in editable mode with all extras so tests and docs can run: ```bash uv pip install -e .[all] ``` - If that fails or `uv` is not installed, use: ```bash .venv/bin/python -m pip install -e .[all] ``` - Confirm the environment by importing NiMARE and running a small command, for example: ```bash python -c "import nimare; print(nimare.__version__)" ```

评论 0

还没有评论,来抢沙发。