# Black vs Ruff

| Attribute | Black | Ruff |
|---|---|---|
| **Vioscale score** | 72.7 (78% (high)) | 74 (76% (high)) |
| activity.commits_last_30d | 29 | 100 |
| adoption.dependent_repos | 105,588 | 5,870 |
| adoption.github_stars | 41,816 | 49,341 |
| adoption.package_downloads_weekly | 39,005,228 | 77,677,334 |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | An opinionated Python code formatter that automatically reformats code according to a standardized style. It produces minimal diffs for cleaner code review and reduces developer cognitive load by removing formatting decisions, allowing focus on code logic. | A fast Python linter built in Rust that consolidates multiple linting tools into a single interface. It supports over 500 rules, provides automated fixes for common issues, and runs significantly faster than traditional Python linters on even very large codebases. |
| features.capabilities | `{"autofix":true,"metrics":false,"function":"formatter","ci_gating":true,"deployment":"both","incremental":false,"open_source":"oss","config_model":"zero_config","custom_rules":false,"impl_language":"Python","pricing_model":"free","language_scope":"single_language","editor_integration":true}` | `{"autofix":true,"function":"linter","deployment":"cli_local","incremental":true,"open_source":"oss","impl_language":"Rust","pricing_model":"free","language_scope":"single_language","editor_integration":true}` |
| integrations.count | 8 | 6 |
| integrations.list | `[{"name":"Neovim"},{"name":"conform.nvim"},{"name":"ALE"},{"name":"SublimeText"},{"name":"Pre-commit"},{"name":"Jupyter Notebooks"},{"name":"blacken-docs"},{"name":"blackdoc"}]` | `[{"name":"Flake8"},{"name":"isort"},{"name":"Autoflake"},{"name":"Pyflakes"},{"name":"pycodestyle"},{"name":"Pylint"}]` |
| language.primary | Python | Rust |
| license.spdx | MIT | MIT |
| market.availability | - | `{"hqCountry":"US","primaryMarkets":["US"],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true}` | `{"cli":true,"mac":true,"linux":true,"windows":true}` |
| pricing | `{"type":"open_source","summary":"Free and open source (MIT licensed)","freeTier":true,"sourceUrl":"https://black.readthedocs.io/en/stable/","retrievedAt":"2026-08-14T13:47:36.307Z"}` | - |
| pricing.free_tier | yes | - |
| pricing.model | open_source | commercial |
| pricing.price_level | free | - |
| pricing.transparent | yes | - |
| release.cadence_days | 31 | 7 |
| release.history | `[{"url":"https://github.com/psf/black/releases/tag/26.5.1","date":"2026-05-18T16:52:38Z","type":"stable","version":"26.5.1"},{"url":"https://github.com/psf/black/releases/tag/26.5.0","date":"2026-05-16T17:56:23Z","type":"stable","version":"26.5.0"},{"url":"https://github.com/psf/black/releases/tag/26.3.1","date":"2026-03-12T03:35:15Z","type":"stable","version":"26.3.1"},{"url":"https://github.com/psf/black/releases/tag/26.3.0","date":"2026-03-06T17:41:48Z","type":"stable","version":"26.3.0"},{"url":"https://github.com/psf/black/releases/tag/26.1.0","date":"2026-01-18T04:49:25Z","type":"stable","version":"26.1.0"},{"url":"https://github.com/psf/black/releases/tag/26.1a1","date":"2025-12-08T01:46:21Z","type":"prerelease","version":"26.1a1"},{"url":"https://github.com/psf/black/releases/tag/25.12.0","date":"2025-12-08T01:40:32Z","type":"stable","version":"25.12.0"},{"url":"https://github.com/psf/black/releases/tag/25.11.0","date":"2025-11-10T01:53:31Z","type":"stable","version":"25.11.0"},{"url":"https://github.com/psf/black/releases/tag/25.9.0","date":"2025-09-19T00:27:15Z","type":"stable","version":"25.9.0"},{"url":"https://github.com/psf/black/releases/tag/25.1.0","date":"2025-01-29T04:15:11Z","type":"stable","version":"25.1.0"},{"url":"https://github.com/psf/black/releases/tag/24.10.0","date":"2024-10-07T19:20:06Z","type":"stable","version":"24.10.0"},{"url":"https://github.com/psf/black/releases/tag/24.8.0","date":"2024-08-02T17:42:53Z","type":"stable","version":"24.8.0"},{"url":"https://github.com/psf/black/releases/tag/24.4.2","date":"2024-04-26T00:31:27Z","type":"stable","version":"24.4.2"},{"url":"https://github.com/psf/black/releases/tag/24.4.1","date":"2024-04-24T15:17:30Z","type":"stable","version":"24.4.1"},{"url":"https://github.com/psf/black/releases/tag/24.4.0","date":"2024-04-12T20:13:48Z","type":"stable","version":"24.4.0"},{"url":"https://github.com/psf/black/releases/tag/24.3.0","date":"2024-03-15T19:35:14Z","type":"stable","version":"24.3.0"},{"url":"https://github.com/psf/black/releases/tag/24.2.0","date":"2024-02-12T20:20:40Z","type":"stable","version":"24.2.0"},{"url":"https://github.com/psf/black/releases/tag/24.1.1","date":"2024-01-28T05:28:09Z","type":"stable","version":"24.1.1"},{"url":"https://github.com/psf/black/releases/tag/24.1.0","date":"2024-01-26T05:11:50Z","type":"stable","version":"24.1.0"},{"url":"https://github.com/psf/black/releases/tag/23.12.1","date":"2023-12-22T23:05:40Z","type":"stable","version":"23.12.1"}]` | `[{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.4","date":"2026-08-20T17:44:56Z","type":"stable","version":"0.16.4"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.3","date":"2026-08-13T15:18:05Z","type":"stable","version":"0.16.3"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.2","date":"2026-08-07T13:31:55Z","type":"stable","version":"0.16.2"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.1","date":"2026-07-30T19:37:52Z","type":"stable","version":"0.16.1"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.0","date":"2026-07-23T19:12:22Z","type":"stable","version":"0.16.0"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.22","date":"2026-07-16T15:15:10Z","type":"stable","version":"0.15.22"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.21","date":"2026-07-09T20:02:30Z","type":"stable","version":"0.15.21"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.20","date":"2026-06-25T17:21:46Z","type":"stable","version":"0.15.20"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.19","date":"2026-06-24T01:11:40Z","type":"stable","version":"0.15.19"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.18","date":"2026-06-18T18:26:34Z","type":"stable","version":"0.15.18"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.17","date":"2026-06-11T17:57:00Z","type":"stable","version":"0.15.17"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.16","date":"2026-06-04T16:34:11Z","type":"stable","version":"0.15.16"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.15","date":"2026-05-28T14:18:02Z","type":"stable","version":"0.15.15"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.14","date":"2026-05-21T14:35:54Z","type":"stable","version":"0.15.14"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.13","date":"2026-05-14T13:45:27Z","type":"stable","version":"0.15.13"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.12","date":"2026-04-24T18:18:25Z","type":"stable","version":"0.15.12"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.11","date":"2026-04-16T18:47:31Z","type":"stable","version":"0.15.11"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.10","date":"2026-04-09T14:07:15Z","type":"stable","version":"0.15.10"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.9","date":"2026-04-02T18:18:12Z","type":"stable","version":"0.15.9"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.8","date":"2026-03-26T19:09:30Z","type":"stable","version":"0.15.8"}]` |
| security.disclosure_policy | yes | - |
| security.gdpr | - | yes |
| security.scorecard | 7.7 | - |
| security.vulnerabilities | `{"count":2,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=pypi&package_name=black&per_page=100","last_12m":1,"max_severity":"HIGH"}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=pypi&package_name=ruff&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Code Quality Tools)

| Capability | Black | Ruff |
|---|:--:|:--:|
| **Core** |  |  |
| Function | Formatter | Linter |
| Language scope | Single-language | Single-language |
| Implementation language | Python | Rust |
| **Capability** |  |  |
| Autofix | ✓ | ✓ |
| **Config** |  |  |
| Config model | Zero-config | - |
| **Extensibility** |  |  |
| Custom rules | ✗ | - |
| **Deployment** |  |  |
| Deployment | Both | CLI-local |
| **Delivery** |  |  |
| Editor integration | ✓ | ✓ |
| CI / VCS gating | ✓ | - |
| **Insight** |  |  |
| Code metrics | ✗ | - |
| **Performance** |  |  |
| Incremental / monorepo aware | ✗ | ✓ |
| **Licensing** |  |  |
| Open-source | OSS | OSS |
| **Commercial** |  |  |
| Pricing model | Free | Free |

*Source: Vioscale. Generated 2026-09-01T16:37:00.507Z. "-" = undocumented, not absent.*
