Skip to content

Commit 68eb0a2

Browse files
Stop referring to early ruff versions (#14862)
## Summary Referring to old versions has become more distracting than useful. ## Test Plan —
1 parent 0f4350e commit 68eb0a2

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

crates/ruff_python_formatter/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ For details, see [Black compatibility](https://docs.astral.sh/ruff/formatter/#bl
2323

2424
## Getting started
2525

26-
The Ruff formatter is available as of Ruff v0.1.2. Head to [The Ruff Formatter](https://docs.astral.sh/ruff/formatter/) for usage instructions and a comparison to Black.
26+
Head to [The Ruff Formatter](https://docs.astral.sh/ruff/formatter/) for usage instructions and a comparison to Black.

docs/formatter.md

-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
The Ruff formatter is an extremely fast Python code formatter designed as a drop-in replacement for
44
[Black](https://pypi.org/project/black/), available as part of the `ruff` CLI via `ruff format`.
55

6-
The Ruff formatter is available as of Ruff [v0.1.2](https://astral.sh/blog/the-ruff-formatter).
7-
86
## `ruff format`
97

108
`ruff format` is the primary entrypoint to the formatter. It accepts a list of files or
@@ -22,10 +20,6 @@ and instead exit with a non-zero status code upon detecting any unformatted file
2220

2321
For the full list of supported options, run `ruff format --help`.
2422

25-
!!! note
26-
As of Ruff v0.1.7 the `ruff format` command uses the current working directory (`.`) as the default path to format.
27-
See [the file discovery documentation](configuration.md#python-file-discovery) for details.
28-
2923
## Philosophy
3024

3125
The initial goal of the Ruff formatter is _not_ to innovate on code style, but rather, to innovate

docs/linter.md

-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ $ ruff check path/to/code/ # Lint all files in `path/to/code` (and any subdir
1919

2020
For the full list of supported options, run `ruff check --help`.
2121

22-
!!! note
23-
As of Ruff v0.1.7 the `ruff check` command uses the current working directory (`.`) as the default path to check.
24-
On older versions, you must provide this manually e.g. `ruff check .`.
25-
See [the file discovery documentation](configuration.md#python-file-discovery) for details.
26-
2722
## Rule selection
2823

2924
The set of enabled rules is controlled via the [`lint.select`](settings.md#lint_select),

docs/preview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Enabling preview mode does not on its own enable all preview rules. See the [rul
1212
Preview mode can be enabled with the `--preview` flag on the CLI or by setting `preview = true` in your Ruff
1313
configuration file.
1414

15-
Preview mode can be configured separately for linting and formatting (requires Ruff v0.1.1+). To enable preview lint rules without preview style formatting:
15+
Preview mode can be configured separately for linting and formatting. To enable preview lint rules without preview style formatting:
1616

1717
=== "pyproject.toml"
1818

docs/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be
349349
```yaml
350350
- repo: https://github.com/astral-sh/ruff-pre-commit
351351
# Ruff version.
352-
rev: v0.1.4
352+
rev: v0.8.2
353353
hooks:
354354
# Run the linter.
355355
- id: ruff

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ changelog_contributors = false
106106
version_files = [
107107
"README.md",
108108
"docs/integrations.md",
109+
"docs/tutorial.md",
109110
"crates/ruff/Cargo.toml",
110111
"crates/ruff_linter/Cargo.toml",
111112
"crates/ruff_wasm/Cargo.toml",

0 commit comments

Comments
 (0)