Side by side
Ruff vs Spotless
Both stand on code formatters. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan LinuxMacSelf-hosted+2
Ruff combines Python linting, formatting and fixes, with integrations for common editors and CI workflows. Its free, permissively licensed offering has broad built-in rules, but teams needing custom lint rules will hit a stated limitation.
Visit Ruff Free plan LinuxMacWindows
Choose Spotless if you need an open-source formatter that can check and fix code across multiple languages and build systems. Check the build-tool feature matrix before choosing SBT, since some listed capabilities are unavailable there.
Visit SpotlessThe facts
| Ruff | Spotless | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Mac, Self-hosted, Web, Windows | Linux, Mac, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 2 |
| Maker | Not published | Not published |
| Website | docs.astral.sh | github.com |
| On code formatters | #8 of 22 | #12 of 22 |
Ruff: what it does well
- Includes more than 900 built-in rules.
- Can automatically fix violations such as unused imports.
- Formatter is designed to replace Black.
- Provides editor, CI and pre-commit integrations.
- Includes a Bandit-derived security rule group.
What to know first
- Custom and third-party lint rules are unsupported.
- Formatter may differ from Black at the margins.
- Language Server needs a companion for navigation and autocompletion.
- Editor setup assistance is best-effort.
Spotless: what it does well
- Checks files for formatting violations and can apply fixes.
- Supports many languages and formats, including Java, Python, and Markdown.
- Offers formatter options such as Prettier, Black, and ktlint.
- Supports changed-lines formatting, ignore files, and a library API.
- Free forever at no cost, with no registration required.
What to know first
- Some capabilities, including ratcheting, are unavailable in SBT.
- Fast incremental formatting is unavailable in SBT.
- SBT integration is linked externally.
Alternatives to Ruff Alternatives to Spotless The whole list
