mirror of https://github.com/astral-sh/ruff
Add a flake8-to-ruff mention (#644)
This commit is contained in:
parent
589ae48f8c
commit
de6435f41d
24
README.md
24
README.md
|
|
@ -15,15 +15,15 @@ An extremely fast Python linter, written in Rust.
|
||||||
<i>Linting the CPython codebase from scratch.</i>
|
<i>Linting the CPython codebase from scratch.</i>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
- ⚡️ 10-100x faster than existing linters
|
- ⚡️ 10-100x faster than existing linters
|
||||||
- 🐍 Installable via `pip`
|
- 🐍 Installable via `pip`
|
||||||
- 🤝 Python 3.10 compatibility
|
- 🤝 Python 3.10 compatibility
|
||||||
- 🛠️ `pyproject.toml` support
|
- 🛠️ `pyproject.toml` support
|
||||||
- 📦 [ESLint](https://eslint.org/docs/latest/user-guide/command-line-interface#caching)-inspired cache support
|
- 📦 Built-in caching, to avoid re-analyzing unchanged files
|
||||||
- 🔧 [ESLint](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix)-inspired autofix support (e.g., automatically remove unused imports)
|
- 🔧 `--fix` support, for automatic error correction (e.g., automatically remove unused imports)
|
||||||
- 👀 [TypeScript](https://www.typescriptlang.org/docs/handbook/configuring-watch.html)-inspired `--watch` support, for continuous file monitoring
|
- 👀 `--watch` support, for continuous file monitoring
|
||||||
- ⚖️ [Near-parity](#how-does-ruff-compare-to-flake8) with the built-in Flake8 rule set
|
- ⚖️ [Near-parity](#how-does-ruff-compare-to-flake8) with the built-in Flake8 rule set
|
||||||
- 🔌 Native re-implementations of popular Flake8 plugins, like [`flake8-docstrings`](https://pypi.org/project/flake8-docstrings/) ([`pydocstyle`](https://pypi.org/project/pydocstyle/))
|
- 🔌 Native re-implementations of popular Flake8 plugins, like [`flake8-docstrings`](https://pypi.org/project/flake8-docstrings/) ([`pydocstyle`](https://pypi.org/project/pydocstyle/))
|
||||||
|
|
||||||
Ruff aims to be orders of magnitude faster than alternative tools while integrating more
|
Ruff aims to be orders of magnitude faster than alternative tools while integrating more
|
||||||
functionality behind a single, common interface. Ruff can be used to replace Flake8 (plus a variety
|
functionality behind a single, common interface. Ruff can be used to replace Flake8 (plus a variety
|
||||||
|
|
@ -31,6 +31,9 @@ of plugins), [`pydocstyle`](https://pypi.org/project/pydocstyle/), [`yesqa`](htt
|
||||||
and even a subset of [`pyupgrade`](https://pypi.org/project/pyupgrade/) and [`autoflake`](https://pypi.org/project/autoflake/)
|
and even a subset of [`pyupgrade`](https://pypi.org/project/pyupgrade/) and [`autoflake`](https://pypi.org/project/autoflake/)
|
||||||
all while executing tens or hundreds of times faster than any individual tool.
|
all while executing tens or hundreds of times faster than any individual tool.
|
||||||
|
|
||||||
|
(Coming from Flake8? Try [`flake8-to-ruff`](https://pypi.org/project/flake8-to-ruff/) to
|
||||||
|
automatically convert your existing configuration.)
|
||||||
|
|
||||||
Ruff is actively developed and used in major open-source projects
|
Ruff is actively developed and used in major open-source projects
|
||||||
like [Zulip](https://github.com/zulip/zulip), [pydantic](https://github.com/pydantic/pydantic),
|
like [Zulip](https://github.com/zulip/zulip), [pydantic](https://github.com/pydantic/pydantic),
|
||||||
and [Saleor](https://github.com/saleor/saleor).
|
and [Saleor](https://github.com/saleor/saleor).
|
||||||
|
|
@ -608,6 +611,9 @@ stylistic lint rules that are obviated by autoformatting.
|
||||||
|
|
||||||
### How does Ruff compare to Flake8?
|
### How does Ruff compare to Flake8?
|
||||||
|
|
||||||
|
(Coming from Flake8? Try [`flake8-to-ruff`](https://pypi.org/project/flake8-to-ruff/) to
|
||||||
|
automatically convert your existing configuration.)
|
||||||
|
|
||||||
Ruff can be used as a (near) drop-in replacement for Flake8 when used (1) without or with a small
|
Ruff can be used as a (near) drop-in replacement for Flake8 when used (1) without or with a small
|
||||||
number of plugins, (2) alongside Black, and (3) on Python 3 code.
|
number of plugins, (2) alongside Black, and (3) on Python 3 code.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue