用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiidateam/aiida-core --skill linting-and-ci命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when adding a new `verdi` subcommand in `src/aiida/cmdline/`.
Use when adding a new third-party dependency to aiida-core's `pyproject.toml`.
Use when exploring the aiida-core codebase structure, looking for key files, or understanding how packages relate to each other.
基于 SOC 职业分类
正在显示 SKILL.md
| name | linting-and-ci |
| description | Use when running pre-commit, linting, type checking, or fixing CI failures in aiida-core. |
Always invoke via uv run so tools pick up the locked project environment.
Never use bare python or pip.
uv run pre-commit # check staged files
uv run pre-commit run --all-files # check everything
uv run pre-commit run mypy # run a specific hook
uv run pre-commit run ruff --all-files # run ruff on all files
uv run pre-commit run --from-ref main --to-ref HEAD # check only changes since branching off main
uv run pre-commit run --from-ref $(git merge-base main HEAD) --to-ref HEAD # same, but robust when main has advanced
Hooks worth knowing about: uv-lock (lockfile consistency), imports (auto-generates __all__), nbstripout, generate-conda-environment, verdi-autodocs.
CI enforces import-time constraints on src/aiida/cmdline/; see the adding-a-cli-command skill for details.
verdi shell # IPython shell with AiiDA loaded
verdi status # service status (daemon, storage, broker if configured)
verdi daemon start/stop/restart # manage the daemon
verdi devel check-load-time # check for import-time violations
Set AIIDA_WARN_v3=1 to surface deprecation warnings.