beeware/beeware.github.io

Add ruff to repo to lint Python scripts.

Open

#751 建立於 2026年2月2日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (813 fork)auto 404
enhancementgood first issue

倉庫指標

Star
 (593 star)
PR 合併指標
 (PR 指標待抓取)

描述

What is the problem or limitation you are having?

This repository contains Python code, but we are not enforcing Ruff style configurations on that code.

Describe the solution you'd like

Add a ruff configuration to pyproject.toml, and a pre-commit rule to enforce ruff formatting.

Describe alternatives you've considered

Additional context

The initial ruff linting ruleset can be copied from Toga's configuration.

After adding the configuration, run pre-commit run --all to ensure style is enforced on all existing code. This will almost certainly result in some formatting updates.

貢獻者指南