nbqajupyterruffmypy
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "nbqajupyterruffmypy" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-517a24f31bc4931064b9232b2c307e854011b0387488cdb93290486f3a223fe6. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/run-ruff-mypy-and-other-code-quality-tools-on-jupyter-notebooks-with-nbqa before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Apply standard Python formatters, linters, and type checkers (e.g. ruff, mypy) to notebook-heavy repositories without requiring manual conversion of notebooks to scripts.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Python 3, pip, nbQA, Jupyter notebooks, underlying QA tools such as Ruff or Mypy
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "使用 nbQA 在 Jupyter 笔记本上运行 Ruff、Mypy 和其他代码质量工具"
slug: "run-ruff-mypy-and-other-code-quality-tools-on-jupyter-notebooks-with-nbqa"
version: "1.0.0"
displayName: "使用 nbQA 在 Jupyter 笔记本上运行 Ruff、Mypy 和其他代码质量工具"
summary: "对以笔记本为主的仓库应用标准的Python格式化工具、linter和类型检查工具,而无需手动将笔记本转换为脚本。"
license: "MIT"
description: "对notebook密集型仓库应用标准Python格式化工具、linter和类型检查器,而无需手动将notebook转换为脚本。"
github_stars: 1196
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 1196使用 nbQA 在 Jupyter 笔记本上运行 Ruff、Mypy 和其他代码质量工具
Apply standard Python formatters, linters, and type checkers to notebook-heavy repositories without manually converting notebooks to scripts.
Prerequisites
Python 3, pip, nbQA, Jupyter notebooks, underlying QA tools such as Ruff or Mypy
Installation
Use the upstream install or setup path that matches your environment:
- $ python -m pip install -U nbqa
- $ python -m pip install -U "nbqa[toolchain]"
Requirements and caveats from upstream:
- In your virtual environment, run (note: the $ is not part of the command):
- Format .md files saved via Jupytext (requires jupytext to be installed):
- See command-line examples for examples involving doctest, flake8, [mypy](...
Basic usage or getting-started notes:
-
Run ruff, isort, pyupgrade, mypy, pylint, flake8, black, blacken-docs, and more on Jupyter Notebooks
-
Here's an example of how to set up some pre-commit hooks: put this in your .pre-commit-config.yaml file (see usage as pre-commit hook)
-
Extracted from upstream docs: https://raw.githubusercontent.com/nbQA-dev/nbQA/HEAD/README.md
Documentation
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 notebook 密集型仓库中代码质量管控的高频刚需,显著提升数据科学与研究型项目的开发效率
- 集成 Ruff、Mypy 等主流工具,无需手动转换 notebook 格式,降低使用门槛
Highlights
- 触发描述清晰明确,准确传达核心功能与适用场景
Areas to improve
-
缺少端到端示例与步骤划分 Reported severity: Minor
文档包含基本章节但缺乏清晰的 Phase/步骤划分和完整的端到端示例
Recommendation: 建议补充 Step-by-Step 使用流程,并提供一个完整的 notebook 代码质量检查示例
Highlights
- frontmatter 完整,文档结构基本清晰
Areas to improve
-
主要异常场景未覆盖 Reported severity: Minor
未说明如何处理 notebook 语法错误、工具未安装等常见异常情况
Recommendation: 建议增加 Troubleshooting 章节,覆盖常见错误与解决方案
Highlights
- 工具来源明确,参数使用规范,基础执行流程可靠
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 32, 33
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- docs.python.org
- flake8.pycqa.org
- github.com
- nbqa.readthedocs.io
- raw.githubusercontent.com
- realpython.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Python 3, pip, nbQA, Jupyter notebooks, underlying QA tools such as Ruff or Mypy
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.