Mindket

ruff

新上架第 1 版 · 更新于
星标51k

概览

检查 Python 代码里的错误和风格问题,并重新格式化代码,用 Rust 编写以求速度。适合想把检查器和格式化工具合在一起用的 Python 开发者。

ruff 是一款 GitHub 上的开源项目,属于开发类,由 Mindket 上架。可免费获取。当前为第 1 版,最近更新于 。按它的 README 从 GitHub 安装。Mindket 的设置说明可在你的 Mindket 账户获取,以 zip 压缩包下载。

速览

先运行
git clone https://github.com/astral-sh/ruff.git
cd ruff

关于

它是什么

Ruff 是一个面向 Python 的代码检查器和格式化工具,用 Rust 编写。检查器查找代码里的错误和风格问题,格式化工具整理代码的排版。项目称它速度极快。

适合谁

Ruff 适合想用一个工具检查和整理代码的 Python 开发者,也适合重视统一风格的团队。

行业谁在用怎么用例子
软件开发Python 开发者检查代码里的错误和风格问题代码评审前扫描一个项目的文件
数据科学写 Python 的分析师保持脚本的排版整洁分享前整理一份分析脚本
教育Python 老师指出代码哪里偏离了 PEP 8 风格指南向学生展示哪几行违反了风格指南
开源维护者让贡献的代码保持同一种风格对每个贡献的文件套用同样的格式

不写 Python 的开发者可以跳过它。

如何设置

笔记里只给出一种获取项目的方式,就是用 git 复制它的代码。

  1. 用 git 从项目的 GitHub 页面复制代码。
  2. 按它的 README 里的说明设置。

在终端里运行:

# 把项目复制到你的电脑
git clone https://github.com/astral-sh/ruff.git
# 进入项目文件夹
cd ruff

新手与专家

检查器会读你的 Python 代码,指出可能的错误和风格问题,格式化工具则帮你重写排版。可以先试一件小事:检查一个你已有的脚本。

Ruff 用 Rust 编写,项目在一行简介里把速度放在最前面。它的主题标签指向静态分析和 PEP 8 这样的风格指南,所以它的检查和其他 Python 检查器处在同一个领域。

注意事项

这个工具包只有项目的笔记和代码的指引,所以它本身不会运行任何东西。这里的 README 文字很短,规则和选项请去仓库里查看。

  • 许可证:MIT
  • 运行成本:没有提到
  • 它会接触的数据:没有提到
  • 不适合:用 Python 以外的语言写的代码,因为笔记描述的是一个 Python 工具

README 和文件

README

ruff

检查 Python 代码里的错误和风格问题,并重新格式化代码,用 Rust 编写以求速度。适合想把检查器和格式化工具合在一起用的 Python 开发者。

由 astral-sh 在 GitHub 上制作。这些说明是 Mindket 根据其 README 写的,项目自己的文件和许可证在它的仓库里。

简介

它是什么:Ruff 是一个面向 Python 的代码检查器和格式化工具,用 Rust 编写。检查器查找代码里的错误和风格问题,格式化工具整理代码的排版。项目称它速度极快。

适合谁:Ruff 适合想用一个工具检查和整理代码的 Python 开发者,也适合重视统一风格的团队。

行业 | 谁在用 | 怎么用 | 例子
软件开发 | Python 开发者 | 检查代码里的错误和风格问题 | 代码评审前扫描一个项目的文件
数据科学 | 写 Python 的分析师 | 保持脚本的排版整洁 | 分享前整理一份分析脚本
教育 | Python 老师 | 指出代码哪里偏离了 PEP 8 风格指南 | 向学生展示哪几行违反了风格指南
开源 | 维护者 | 让贡献的代码保持同一种风格 | 对每个贡献的文件套用同样的格式

不写 Python 的开发者可以跳过它。

如何设置:笔记里只给出一种获取项目的方式,就是用 git 复制它的代码。

  1. 用 git 从项目的 GitHub 页面复制代码。
  2. 按它的 README 里的说明设置。

新手与专家:检查器会读你的 Python 代码,指出可能的错误和风格问题,格式化工具则帮你重写排版。可以先试一件小事:检查一个你已有的脚本。

Ruff 用 Rust 编写,项目在一行简介里把速度放在最前面。它的主题标签指向静态分析和 PEP 8 这样的风格指南,所以它的检查和其他 Python 检查器处在同一个领域。

注意事项:这个工具包只有项目的笔记和代码的指引,所以它本身不会运行任何东西。这里的 README 文字很短,规则和选项请去仓库里查看。

  • 许可证:MIT
  • 运行成本:没有提到
  • 它会接触的数据:没有提到
  • 不适合:用 Python 以外的语言写的代码,因为笔记描述的是一个 Python 工具

GitHub 上的数据(2026年11月7日)

  • 星标:50,705(当天 169)
  • 复刻:2,613
  • 关注:156
  • 未关闭的议题和拉取请求:2,255
  • 语言:Rust
  • 许可证:MIT
  • 话题:linter, pep8, python, python3, ruff, rust, rustpython, static-analysis, static-code-analysis, style-guide, styleguide
  • 趋势:GitHub 趋势榜当日第 17 名(2026年11月7日)

链接

  • 代码:https://github.com/astral-sh/ruff
  • 网站:https://docs.astral.sh/ruff
  • 发布版本:https://github.com/astral-sh/ruff/releases
  • 议题:https://github.com/astral-sh/ruff/issues
  • 星标历史:https://www.star-history.com/#astral-sh/ruff&Date

获取代码

git clone https://github.com/astral-sh/ruff.git

然后按它的 README 完成设置。这个工具包里没有会自己运行的东西。

文件
README.md  3 KB

1 个文件,共 3 KB,以 zip 压缩包下载。

更新内容

  • 第 1 版 · 2026-11-07

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

nikolattType Server ProtocolDetachHead (maintainer of basedpyright) has criticized the TSP before: - https://docs.basedpyright.com/v1.40.2/type-server/ - https://github.com/microsoft/pylance-release/discussions/718... Ty (the type checker maintained by astral) however will apparently support the TSP:…GitHub Trending8. https://github.com/sherlock-project/sherlock - Python, 1819 stars today 9. https://github.com/milind-soni/OpenMausBot - TypeScript, 1986 stars today 10. https://github.com/astral-sh/ruff - Rust, 350 stars today 11. https://github.com/tailwindlabs/tailwindcss - TypeScript, 181 stars today 12 […]1 赞Fajar_RahmadShow HN: Scrut – A Python static code reviewer that focuses on changed Git filesI believe we can do the same with pre-commit linter such as ruff pre-commit or pylint pre-commit? https://github.com/astral-sh/ruff-pre-commit https://pylint.pycqa.org/en/stable/user_guide/installation/p...GitHub Trending🔥 Hot Repo! 🔥 (100+ new stars) 📦 astral-sh / ruff ⭐ 50,486 (+107) 🗒 Rust An extremely fast Python linter and code formatter, written in Rust.1 赞gcarvalhoRuff v0.16.0 – Significant new updates – 413 default rules up from 59> with every version introducing a bunch of new default rules which you then have to deal with immediately According to the original post > Ruff's default rule set was last modified in v0.1.0 Which was over 2 years ago. https://github.com/astral-sh/ruff/releases/tag/v0.1.0GitHub Trending Rust🔥 Hot Repo! 🔥 (100+ new stars) 📦 astral-sh / ruff ⭐ 50,486 (+107) 🗒 Rust An extremely fast Python linter and code formatter, written in Rust.1 赞westurnerRuff v0.16.0 – Significant new updates – 413 default rules up from 59TIL RustPython uses Ruff's AST which is fast. LibCST can modify the AST/CST to do python codemod, now in Rust too; rustpython-ruff_python_parser: https://crates.io/crates/rustpython-ruff_python_parser .. https://github.com/astral-sh/ruff LibCST: https://github.com/Instagram/LibCSTRustTrendingastral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★49734 https://github.com/astral-sh/ruff1 赞etawebTypeScript 7Note that Python supports type annotations in its syntax, but the interpreter will just ignore them as they are meant to be used by external tools such as ruff: https://github.com/astral-sh/ruff I've had a good experience developing small to medium sized Python programs/scripts using type…SnoodJ 🦃TIL Ruff's undefined-name rule complains when using a forward reference in a type annotation if the name in the reference is not defined… …which is the entire point of a forward reference??? https://github.com/astral-sh/ruff/issues/71751 条回复optionalsquidFable Converted Pylint to RustBased on their tracking issue, Ruff is missing 156 out of 397 Pylint checks: https://github.com/astral-sh/ruff/issues/970 Though some of them will presumably be covered by TyRustTrendingastral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★50492 https://github.com/astral-sh/ruff

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

DeepSeek-R1-GGUF

unsloth · 工具包

671B 参数 DeepSeek-R1 推理模型的 GGUF 版本,带 1.58-bit 和 2-bit 动态量化,可在内存足够的本机上用 llama.cpp 运行。

新上架

Axion-1.0-35B-GGUF

prithivMLmods · 工具包

提供 Axion-1.0-35B 的 GGUF 文件,这是一个有约 30 亿激活参数的 35B 混合专家模型,面向科学推理、信息查找和工具使用。适合配合 llama.cpp 在本地使用。

新上架

HEART

Phips · 工具包

用一个超分辨率网络放大低分辨率图像,可以在一块消费级 GPU 上训练,并导出为 ONNX。适合训练或运行图像放大模型的人。

新上架

Open Interpreter 终端编程智能体

openinterpreter · 工具包

新的 Rust 版 Open Interpreter,一个跑在终端里的编程智能体,基于 OpenAI 的 Codex。模型由你自己带,从 ChatGPT 或 API 密钥,到 Kimi K3、DeepSeek、GLM 或本地模型都行。它可以照搬另一个智能体的提示词和工具,来适配低成本模型。

新上架68.8k

Bonsai-27B-GGUF

lmstudio-community · 工具包

面向 LM Studio 的 27B Bonsai 模型 GGUF 转换版,含 3.80 GB 的 Q1_0 语言文件和 0.93 GB 的 BF16 视觉投影器。已测试文本、视觉和并行工具调用。

新上架

以每权重 2.9 位的 EXL3 量化运行 DeepSeek-V4.1-Flash-1017,这是一份 196 GiB 的副本,适合在自己硬件上部署大模型的人。困惑度与原模型相差不大。

新上架