Skip to content

Commit 3127c79

Browse files
authored
1 parent c91cc29 commit 3127c79

File tree

10 files changed

+78
-12
lines changed

10 files changed

+78
-12
lines changed

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,71 @@
11
# Changelog
22

3+
## 0.1.2
4+
5+
This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter.
6+
Try it today with `ruff format`.
7+
8+
### Preview features
9+
10+
- \[`pylint`\] Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056))
11+
- \[`pylint`\] implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038))
12+
- \[`pylint`\] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953))
13+
- \[`refurb`\] Implement `read-whole-file` (`FURB101`) ([#7682](https://github.com/astral-sh/ruff/pull/7682))
14+
- Add fix for `E223`, `E224`, and `E242` ([#8143](https://github.com/astral-sh/ruff/pull/8143))
15+
- Add fix for `E225`, `E226`, `E227`, and `E228` ([#8136](https://github.com/astral-sh/ruff/pull/8136))
16+
- Add fix for `E252` ([#8142](https://github.com/astral-sh/ruff/pull/8142))
17+
- Add fix for `E261` ([#8114](https://github.com/astral-sh/ruff/pull/8114))
18+
- Add fix for `E273` and `E274` ([#8144](https://github.com/astral-sh/ruff/pull/8144))
19+
- Add fix for `E275` ([#8133](https://github.com/astral-sh/ruff/pull/8133))
20+
- Update `SIM401` to catch ternary operations ([#7415](https://github.com/astral-sh/ruff/pull/7415))
21+
22+
### Rule changes
23+
24+
- Add `backports.strenum` to `deprecated-imports` ([#8113](https://github.com/astral-sh/ruff/pull/8113))
25+
- Update `E721` to allow `is` and `is` not for direct type comparisons ([#7905](https://github.com/astral-sh/ruff/pull/7905))
26+
- Update `SIM112` to ignore `https_proxy`, `http_proxy`, and `no_proxy` ([#8140](https://github.com/astral-sh/ruff/pull/8140))
27+
- Update fix for `literal-membership` (`PLR6201`) to be unsafe ([#8097](https://github.com/astral-sh/ruff/pull/8097))
28+
- Update fix for `mutable-argument-defaults` (`B006`) to be unsafe ([#8108](https://github.com/astral-sh/ruff/pull/8108))
29+
30+
### Formatter
31+
32+
- Change `line-ending` default to `auto` ([#8057](https://github.com/astral-sh/ruff/pull/8057))
33+
- Respect parenthesized generators in `has_own_parentheses` ([#8100](https://github.com/astral-sh/ruff/pull/8100))
34+
- Add caching to formatter ([#8089](https://github.com/astral-sh/ruff/pull/8089))
35+
- Remove `--line-length` option from `format` command ([#8131](https://github.com/astral-sh/ruff/pull/8131))
36+
- Add formatter to `line-length` documentation ([#8150](https://github.com/astral-sh/ruff/pull/8150))
37+
- Warn about incompatible formatter options ([#8088](https://github.com/astral-sh/ruff/pull/8088))
38+
- Fix range of unparenthesized tuple subject in match statement ([#8101](https://github.com/astral-sh/ruff/pull/8101))
39+
- Remove experimental formatter warning ([#8148](https://github.com/astral-sh/ruff/pull/8148))
40+
- Don't move type param opening parenthesis comment ([#8163](https://github.com/astral-sh/ruff/pull/8163))
41+
- Update versions in format benchmark script ([#8110](https://github.com/astral-sh/ruff/pull/8110))
42+
- Avoid loading files for cached format results ([#8134](https://github.com/astral-sh/ruff/pull/8134))
43+
44+
### CLI
45+
46+
- Show the `ruff format` command in help menus ([#8167](https://github.com/astral-sh/ruff/pull/8167))
47+
- Add `ruff version` command with long version display ([#8034](https://github.com/astral-sh/ruff/pull/8034))
48+
49+
### Configuration
50+
51+
- New `pycodestyle.max-line-length` option ([#8039](https://github.com/astral-sh/ruff/pull/8039))
52+
53+
### Bug fixes
54+
55+
- Detect `sys.version_info` slices in `outdated-version-block` ([#8112](https://github.com/astral-sh/ruff/pull/8112))
56+
- Avoid if-else simplification for `TYPE_CHECKING` blocks ([#8072](https://github.com/astral-sh/ruff/pull/8072))
57+
- Avoid false-positive print separator diagnostic with starred argument ([#8079](https://github.com/astral-sh/ruff/pull/8079))
58+
59+
### Documentation
60+
61+
- Fix message for `too-many-arguments` lint ([#8092](https://github.com/astral-sh/ruff/pull/8092))
62+
- Fix `extend-unsafe-fixes` and `extend-safe-fixes` example ([#8139](https://github.com/astral-sh/ruff/pull/8139))
63+
- Add links to `flake8-import-conventions` options ([#8115](https://github.com/astral-sh/ruff/pull/8115))
64+
- Rework the documentation to incorporate the Ruff formatter ([#7732](https://github.com/astral-sh/ruff/pull/7732))
65+
- Fix `Options` JSON schema description ([#8081](https://github.com/astral-sh/ruff/pull/8081))
66+
- Fix typo (`pytext` -> `pytest`) ([#8117](https://github.com/astral-sh/ruff/pull/8117))
67+
- Improve `magic-value-comparison` example in docs ([#8111](https://github.com/astral-sh/ruff/pull/8111))
68+
369
## 0.1.1
470

571
### Rule changes

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff
151151
# Run the Ruff linter.
152152
- repo: https://github.com/astral-sh/ruff-pre-commit
153153
# Ruff version.
154-
rev: v0.1.1
154+
rev: v0.1.2
155155
hooks:
156156
# Run the Ruff linter.
157157
- id: ruff

crates/flake8_to_ruff/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flake8-to-ruff"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = """
55
Convert Flake8 configuration files to Ruff configuration files.
66
"""

crates/ruff_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff_cli"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

crates/ruff_linter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff_linter"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

crates/ruff_shrinking/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff_shrinking"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

docs/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be
284284
# Run the Ruff linter.
285285
- repo: https://github.com/astral-sh/ruff-pre-commit
286286
# Ruff version.
287-
rev: v0.1.1
287+
rev: v0.1.2
288288
hooks:
289289
- id: ruff
290290
# Run the Ruff formatter.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "ruff"
7-
version = "0.1.1"
7+
version = "0.1.2"
88
description = "An extremely fast Python linter, written in Rust."
99
authors = [{ name = "Astral Software Inc.", email = "[email protected]" }]
1010
readme = "README.md"

scripts/benchmarks/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "scripts"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = ""
55
authors = ["Charles Marsh <[email protected]>"]
66

0 commit comments

Comments
 (0)