-
-
Notifications
You must be signed in to change notification settings - Fork 812
Add ruff to repo to lint Python scripts. #751
Copy link
Copy link
Open
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.good first issueIs this your first time contributing? This could be a good place to start!Is this your first time contributing? This could be a good place to start!
Metadata
Metadata
Assignees
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.good first issueIs this your first time contributing? This could be a good place to start!Is this your first time contributing? This could be a good place to start!
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Ready
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
ruffconfiguration topyproject.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 --allto ensure style is enforced on all existing code. This will almost certainly result in some formatting updates.