7 个仓库
Tools specifically designed to reformat Python source code to adhere to defined style guides.
Distinct from Python: None of the candidates focus on the actual rewriting of Python source for style, rather than linting or standards
Explore 7 awesome GitHub repositories matching programming languages & runtimes · Python Code Formatters. Refine with filters or upvote what's useful.
YAPF 是一个 Python 代码格式化程序和样式合规工具。它作为一个基于 AST 的重格式化程序运行,使用具体语法树来确保源文件之间的结构一致性和统一的视觉呈现。 该引擎利用基于惩罚的布局优化器,通过计算不同格式化选择的数值成本来确定最佳换行符。它采用多进程代码处理器将多个文件的格式化分布到多个 CPU 核心上。 该工具涵盖了通过就地文件修改、差异分析和处理部分代码片段进行的源代码重格式化。它包括一个用于管理样式预设、布局规则和项目级设置的基于规则的配置系统。 集成能力包括用于持续集成流水线的样式合规验证、Git 钩子自动化以及基于编辑器的保存时格式化功能。
Reformats Python source code to adhere to defined style guides for consistent visual presentation.
Spotless is a multi-language formatting orchestrator and Gradle plugin that automates code styling across various programming languages within a single build pipeline. It functions as a coordinator for multiple third-party formatters, a code style linting tool, and a system for inserting and updating standardized license headers. The project distinguishes itself through git-integrated style enforcement, using pre-push hooks and git references to apply formatting only to modified files or lines. It supports shared build configurations, allowing formatting rules to be distributed and loaded acr
Applies the Black formatter to Python source files using a specified executable.
本项目是一个全面的 Python 编程教育材料合集,包括教程、练习与精选代码示例。它作为一个学习课程与软件工程工具包,利用 Jupyter Notebooks 将可执行代码与描述性教育文本相结合。 该仓库提供了构建大语言模型应用的实践指南,例如检索增强生成(RAG)系统、有状态 AI 代理与机器学习工作流。它通过提供结构化的代理编码工作流脱颖而出,涵盖了上下文窗口蒸馏、与提供商无关的模型路由以及模式强制的结构化输出。 这些材料涵盖了广泛的软件工程能力,包括使用分布式任务队列的异步编程、使用 REST API 的 Web 应用开发以及数据分析工作流。它还包括用于掌握面向对象设计、实现 CI/CD 流水线以及应用专业 Linting 与格式化标准的资源。
Includes guides and tools for reformating Python source code to adhere to PEP 8 style guidelines.
autopep8 是一个 Python 静态代码样式器和格式化程序,旨在自动重写源代码以符合 PEP 8 样式指南。它作为一个递归代码清理器,识别并修复整个项目中的缩进、空格和语法不规范之处。 该工具使用抽象语法树(AST)转换执行结构化重构,以执行非空格更改,例如缩短长行和改进身份测试。它包括用于复杂样式违规的激进重构模式,并支持通过内联标记进行选择性格式化,以禁用特定代码块的更改。 功能包括用于定位或忽略特定错误代码的基于规则的修复过滤、行范围格式化,以及生成样式差异报告。该系统可以通过具有递归目录遍历和原地文件修改的命令行界面处理文件,也可以通过 API 以编程方式集成。 格式化偏好和规则集可以通过全局或本地配置文件进行管理。
Automatically reformats Python source code to comply with the PEP 8 style guide.
Proselint 是一个散文语法检查器和基于规则的文本分析器,旨在识别书面文本中的文体错误、陈词滥调和行话。它根据预定义的语言和排版规则注册表扫描文档,以保持专业的编辑标准并提高写作质量。 该项目可作为命令行文本处理器、可编程分析库和 git 预提交钩子使用。其模块化架构允许核心引擎嵌入到其他应用程序中,通过 REST API 公开,或集成到文本编辑器中。 该工具支持递归目录遍历进行批量分析,并接受标准输入中的文本以用于命令行管道。它提供了启用或禁用特定语言检查的配置选项,并能以结构化的 JSON 格式导出诊断结果。
Recursively processes folder hierarchies to identify stylistic errors across an entire project.
doctoc is a markdown table of contents generator and file processor designed to automatically create and update linked lists of headings within markdown documents. It functions as a git repository documentation tool that scans local directories to ensure navigation remains consistent across a collection of files. The tool features a GitHub compatible anchor generator that formats heading links to match the specific requirements of GitHub and similar hosting platforms. It manages updates by locating marker comments to replace existing tables of contents without overwriting other document conte
Traverses folder hierarchies to apply table of contents updates across entire project directories.
This project is a Python library and command-line tool designed to convert Markdown text and files into structured HTML fragments. It functions as a Markdown-to-HTML converter and parser that transforms piped text or source files into web-ready documents. The project is an extensible text processor featuring a pluggable API for defining custom inline and block syntax. This modular framework allows for the registration of specialized syntax extensions, such as tables and footnotes, and provides a system for managing runtime configuration settings. The conversion process covers multilingual te
Ships a utility to read Markdown from files or standard input and write the resulting HTML to a destination.