From 9e9a17a471fbed884e2a531f5c74d5e6d2344aa0 Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 24 Oct 2023 09:07:58 -0500 Subject: [PATCH 1/5] Add changelog entry for 0.1.2 --- CHANGELOG.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb76421afce146..7f17cfbbc85f77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,74 @@ # Changelog +## 0.1.2 + +### Breaking changes +- Change `line-ending` default to `auto` ([#8057](https://github.com/astral-sh/ruff/pull/8057)) + +### Preview features +- Make SIM401 catch ternary operations ([#7415](https://github.com/astral-sh/ruff/pull/7415)) + +### Rule changes +- [refurb] Implement `read-whole-file` [`FURB101`] ([#7682](https://github.com/astral-sh/ruff/pull/7682)) +- [pylint] - implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038)) +- Update fix for `literal-membership` (`PLR6201`) to be unsafe ([#8097](https://github.com/astral-sh/ruff/pull/8097)) +- [`SIM112`] Ignore `https_proxy`, `http_proxy`, and `no_proxy` ([#8140](https://github.com/astral-sh/ruff/pull/8140)) +- Include `backports.strenum` in `deprecated-imports` ([#8113](https://github.com/astral-sh/ruff/pull/8113)) +- Allow `is` and `is` not for direct type comparisons ([#7905](https://github.com/astral-sh/ruff/pull/7905)) +- [pylint] - Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056)) +- [pylint] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953)) + +### Formatter +- Add caching to formatter ([#8089](https://github.com/astral-sh/ruff/pull/8089)) +- Don't move type param opening parenthesis comment ([#8163](https://github.com/astral-sh/ruff/pull/8163)) +- Remove experimental formatter warning ([#8148](https://github.com/astral-sh/ruff/pull/8148)) +- Fix range of unparenthesized tuple subject in match statement ([#8101](https://github.com/astral-sh/ruff/pull/8101)) +- Respect parenthesized generators in `has_own_parentheses` ([#8100](https://github.com/astral-sh/ruff/pull/8100)) +- Warn about incompatible formatter options ([#8088](https://github.com/astral-sh/ruff/pull/8088)) +- Remove `--line-length` option from `format` command ([#8131](https://github.com/astral-sh/ruff/pull/8131)) +- Add formatter to `line-length` documentation ([#8150](https://github.com/astral-sh/ruff/pull/8150)) + +### Bug fixes +- Avoid false-positive print separator diagnostic with starred argument ([#8079](https://github.com/astral-sh/ruff/pull/8079)) +- Detect `sys.version_info` slices in `outdated-version-block` ([#8112](https://github.com/astral-sh/ruff/pull/8112)) +- Avoid if-else simplification for `TYPE_CHECKING` blocks ([#8072](https://github.com/astral-sh/ruff/pull/8072)) +- Fix message for `too-many-arguments` lint ([#8092](https://github.com/astral-sh/ruff/pull/8092)) + +### Other changes +- Add `ruff version` with long version display ([#8034](https://github.com/astral-sh/ruff/pull/8034)) +- Fix `Options` JSON schema description ([#8081](https://github.com/astral-sh/ruff/pull/8081)) +- Rust 1.73 ([#8007](https://github.com/astral-sh/ruff/pull/8007)) +- Add `#[automatically_derived]` to derived impls ([#8080](https://github.com/astral-sh/ruff/pull/8080)) +- Remove unnecessary mutable variable `has_parameters` ([#8124](https://github.com/astral-sh/ruff/pull/8124)) +- Bump tracing from 0.1.39 to 0.1.40 ([#8127](https://github.com/astral-sh/ruff/pull/8127)) +- [docs] fix `extend-unsafe-fixes` and `extend-safe-fixes` example error ([#8139](https://github.com/astral-sh/ruff/pull/8139)) +- Update versions in format benchmark script ([#8110](https://github.com/astral-sh/ruff/pull/8110)) +- Upgrade mutable-argument-defaults to unsafe ([#8108](https://github.com/astral-sh/ruff/pull/8108)) +- Bump codspeed-criterion-compat from 2.2.0 to 2.3.0 ([#8128](https://github.com/astral-sh/ruff/pull/8128)) +- add auto-fix for E275 ([#8133](https://github.com/astral-sh/ruff/pull/8133)) +- add auto-fix for E273,274 ([#8144](https://github.com/astral-sh/ruff/pull/8144)) +- Fix "Preview features" heading level in CHANGELOG ([#8086](https://github.com/astral-sh/ruff/pull/8086)) +- Bump serde_with from 3.3.0 to 3.4.0 ([#8130](https://github.com/astral-sh/ruff/pull/8130)) +- Bump thiserror from 1.0.49 to 1.0.50 ([#8126](https://github.com/astral-sh/ruff/pull/8126)) +- Fix dead link in README ([#8146](https://github.com/astral-sh/ruff/pull/8146)) +- Bump strum_macros from 0.25.2 to 0.25.3 ([#8129](https://github.com/astral-sh/ruff/pull/8129)) +- add auto-fix for E225,226,227,228 ([#8136](https://github.com/astral-sh/ruff/pull/8136)) +- Update hook description in README.md ([#8103](https://github.com/astral-sh/ruff/pull/8103)) +- Refactor `get_mark_decorators` to return a marker name ([#8116](https://github.com/astral-sh/ruff/pull/8116)) +- add auto-fix for E223,224,242 ([#8143](https://github.com/astral-sh/ruff/pull/8143)) +- add auto-fix for E252 ([#8142](https://github.com/astral-sh/ruff/pull/8142)) +- Un-hide the `ruff format` command ([#8167](https://github.com/astral-sh/ruff/pull/8167)) +- Improve `magic-value-comparison` example in docs ([#8111](https://github.com/astral-sh/ruff/pull/8111)) +- Fix typo (`pytext` -> `pytest`) ([#8117](https://github.com/astral-sh/ruff/pull/8117)) +- [`flake8-import-conventions`] Add links to options ([#8115](https://github.com/astral-sh/ruff/pull/8115)) +- Add fix for E261 ([#8114](https://github.com/astral-sh/ruff/pull/8114)) +- Fix changelog links for 0.1.1 ([#8077](https://github.com/astral-sh/ruff/pull/8077)) +- Avoid loading files for cached format results ([#8134](https://github.com/astral-sh/ruff/pull/8134)) +- Rework the documentation to incorporate the Ruff formatter ([#7732](https://github.com/astral-sh/ruff/pull/7732)) +- Move remaining lambda rule to deferred pass ([#8098](https://github.com/astral-sh/ruff/pull/8098)) +- Add compatibility test for `ruff-lsp` to CI ([#8016](https://github.com/astral-sh/ruff/pull/8016)) +- New `pycodestyle.max-line-length` option ([#8039](https://github.com/astral-sh/ruff/pull/8039)) + ## 0.1.1 ### Rule changes @@ -161,4 +230,4 @@ _New rules are added in [preview](https://docs.astral.sh/ruff/preview/)._ ### Playground -- Fix playground `Quick Fix` action ([#7824](https://github.com/astral-sh/ruff/pull/7824)) +- Fix playground `Quick Fix` action ([#7824](https://github.com/astral-sh/ruff/pull/7824)) \ No newline at end of file From bcbc0bb760f5da34536351ad9d9b2e1a80275b57 Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 24 Oct 2023 09:36:42 -0500 Subject: [PATCH 2/5] Editorialize changelog --- CHANGELOG.md | 87 ++++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f17cfbbc85f77..82b9671e46e1fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,72 +2,59 @@ ## 0.1.2 -### Breaking changes -- Change `line-ending` default to `auto` ([#8057](https://github.com/astral-sh/ruff/pull/8057)) - ### Preview features -- Make SIM401 catch ternary operations ([#7415](https://github.com/astral-sh/ruff/pull/7415)) +- [`pylint`] Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056)) +- [`pylint`] implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038)) +- [`pylint`] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953)) +- [`refurb`] Implement `read-whole-file` (`FURB101`) ([#7682](https://github.com/astral-sh/ruff/pull/7682)) +- Add fix for `E223`, `E224`, and `E242` ([#8143](https://github.com/astral-sh/ruff/pull/8143)) +- Add fix for `E225`, `E226`, `E227`, and `E228` ([#8136](https://github.com/astral-sh/ruff/pull/8136)) +- Add fix for `E252` ([#8142](https://github.com/astral-sh/ruff/pull/8142)) +- Add fix for `E261` ([#8114](https://github.com/astral-sh/ruff/pull/8114)) +- Add fix for `E273` and `E274` ([#8144](https://github.com/astral-sh/ruff/pull/8144)) +- Add fix for `E275` ([#8133](https://github.com/astral-sh/ruff/pull/8133)) +- Update `SIM401` to catch ternary operations ([#7415](https://github.com/astral-sh/ruff/pull/7415)) ### Rule changes -- [refurb] Implement `read-whole-file` [`FURB101`] ([#7682](https://github.com/astral-sh/ruff/pull/7682)) -- [pylint] - implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038)) +- Add `backports.strenum` to `deprecated-imports` ([#8113](https://github.com/astral-sh/ruff/pull/8113)) +- Update `E721` to allow `is` and `is` not for direct type comparisons ([#7905](https://github.com/astral-sh/ruff/pull/7905)) +- Update `SIM112` to ignore `https_proxy`, `http_proxy`, and `no_proxy` ([#8140](https://github.com/astral-sh/ruff/pull/8140)) - Update fix for `literal-membership` (`PLR6201`) to be unsafe ([#8097](https://github.com/astral-sh/ruff/pull/8097)) -- [`SIM112`] Ignore `https_proxy`, `http_proxy`, and `no_proxy` ([#8140](https://github.com/astral-sh/ruff/pull/8140)) -- Include `backports.strenum` in `deprecated-imports` ([#8113](https://github.com/astral-sh/ruff/pull/8113)) -- Allow `is` and `is` not for direct type comparisons ([#7905](https://github.com/astral-sh/ruff/pull/7905)) -- [pylint] - Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056)) -- [pylint] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953)) +- Update fix for `mutable-argument-defaults` (`B006`) to be unsafe ([#8108](https://github.com/astral-sh/ruff/pull/8108)) ### Formatter -- Add caching to formatter ([#8089](https://github.com/astral-sh/ruff/pull/8089)) -- Don't move type param opening parenthesis comment ([#8163](https://github.com/astral-sh/ruff/pull/8163)) -- Remove experimental formatter warning ([#8148](https://github.com/astral-sh/ruff/pull/8148)) -- Fix range of unparenthesized tuple subject in match statement ([#8101](https://github.com/astral-sh/ruff/pull/8101)) +- Change `line-ending` default to `auto` ([#8057](https://github.com/astral-sh/ruff/pull/8057)) - Respect parenthesized generators in `has_own_parentheses` ([#8100](https://github.com/astral-sh/ruff/pull/8100)) -- Warn about incompatible formatter options ([#8088](https://github.com/astral-sh/ruff/pull/8088)) +- Add caching to formatter ([#8089](https://github.com/astral-sh/ruff/pull/8089)) - Remove `--line-length` option from `format` command ([#8131](https://github.com/astral-sh/ruff/pull/8131)) - Add formatter to `line-length` documentation ([#8150](https://github.com/astral-sh/ruff/pull/8150)) +- Warn about incompatible formatter options ([#8088](https://github.com/astral-sh/ruff/pull/8088)) +- Fix range of unparenthesized tuple subject in match statement ([#8101](https://github.com/astral-sh/ruff/pull/8101)) +- Remove experimental formatter warning ([#8148](https://github.com/astral-sh/ruff/pull/8148)) +- Don't move type param opening parenthesis comment ([#8163](https://github.com/astral-sh/ruff/pull/8163)) +- Update versions in format benchmark script ([#8110](https://github.com/astral-sh/ruff/pull/8110)) +- Avoid loading files for cached format results ([#8134](https://github.com/astral-sh/ruff/pull/8134)) + +### CLI +- Show the `ruff format` command in help menus ([#8167](https://github.com/astral-sh/ruff/pull/8167)) +- Add `ruff version` command with long version display ([#8034](https://github.com/astral-sh/ruff/pull/8034)) + +### Configuration +- New `pycodestyle.max-line-length` option ([#8039](https://github.com/astral-sh/ruff/pull/8039)) ### Bug fixes -- Avoid false-positive print separator diagnostic with starred argument ([#8079](https://github.com/astral-sh/ruff/pull/8079)) - Detect `sys.version_info` slices in `outdated-version-block` ([#8112](https://github.com/astral-sh/ruff/pull/8112)) - Avoid if-else simplification for `TYPE_CHECKING` blocks ([#8072](https://github.com/astral-sh/ruff/pull/8072)) -- Fix message for `too-many-arguments` lint ([#8092](https://github.com/astral-sh/ruff/pull/8092)) +- Avoid false-positive print separator diagnostic with starred argument ([#8079](https://github.com/astral-sh/ruff/pull/8079)) -### Other changes -- Add `ruff version` with long version display ([#8034](https://github.com/astral-sh/ruff/pull/8034)) +### Documentation +- Fix message for `too-many-arguments` lint ([#8092](https://github.com/astral-sh/ruff/pull/8092)) +- Fix `extend-unsafe-fixes` and `extend-safe-fixes` example ([#8139](https://github.com/astral-sh/ruff/pull/8139)) +- Add links to `flake8-import-conventions` options ([#8115](https://github.com/astral-sh/ruff/pull/8115)) +- Rework the documentation to incorporate the Ruff formatter ([#7732](https://github.com/astral-sh/ruff/pull/7732)) - Fix `Options` JSON schema description ([#8081](https://github.com/astral-sh/ruff/pull/8081)) -- Rust 1.73 ([#8007](https://github.com/astral-sh/ruff/pull/8007)) -- Add `#[automatically_derived]` to derived impls ([#8080](https://github.com/astral-sh/ruff/pull/8080)) -- Remove unnecessary mutable variable `has_parameters` ([#8124](https://github.com/astral-sh/ruff/pull/8124)) -- Bump tracing from 0.1.39 to 0.1.40 ([#8127](https://github.com/astral-sh/ruff/pull/8127)) -- [docs] fix `extend-unsafe-fixes` and `extend-safe-fixes` example error ([#8139](https://github.com/astral-sh/ruff/pull/8139)) -- Update versions in format benchmark script ([#8110](https://github.com/astral-sh/ruff/pull/8110)) -- Upgrade mutable-argument-defaults to unsafe ([#8108](https://github.com/astral-sh/ruff/pull/8108)) -- Bump codspeed-criterion-compat from 2.2.0 to 2.3.0 ([#8128](https://github.com/astral-sh/ruff/pull/8128)) -- add auto-fix for E275 ([#8133](https://github.com/astral-sh/ruff/pull/8133)) -- add auto-fix for E273,274 ([#8144](https://github.com/astral-sh/ruff/pull/8144)) -- Fix "Preview features" heading level in CHANGELOG ([#8086](https://github.com/astral-sh/ruff/pull/8086)) -- Bump serde_with from 3.3.0 to 3.4.0 ([#8130](https://github.com/astral-sh/ruff/pull/8130)) -- Bump thiserror from 1.0.49 to 1.0.50 ([#8126](https://github.com/astral-sh/ruff/pull/8126)) -- Fix dead link in README ([#8146](https://github.com/astral-sh/ruff/pull/8146)) -- Bump strum_macros from 0.25.2 to 0.25.3 ([#8129](https://github.com/astral-sh/ruff/pull/8129)) -- add auto-fix for E225,226,227,228 ([#8136](https://github.com/astral-sh/ruff/pull/8136)) -- Update hook description in README.md ([#8103](https://github.com/astral-sh/ruff/pull/8103)) -- Refactor `get_mark_decorators` to return a marker name ([#8116](https://github.com/astral-sh/ruff/pull/8116)) -- add auto-fix for E223,224,242 ([#8143](https://github.com/astral-sh/ruff/pull/8143)) -- add auto-fix for E252 ([#8142](https://github.com/astral-sh/ruff/pull/8142)) -- Un-hide the `ruff format` command ([#8167](https://github.com/astral-sh/ruff/pull/8167)) -- Improve `magic-value-comparison` example in docs ([#8111](https://github.com/astral-sh/ruff/pull/8111)) - Fix typo (`pytext` -> `pytest`) ([#8117](https://github.com/astral-sh/ruff/pull/8117)) -- [`flake8-import-conventions`] Add links to options ([#8115](https://github.com/astral-sh/ruff/pull/8115)) -- Add fix for E261 ([#8114](https://github.com/astral-sh/ruff/pull/8114)) -- Fix changelog links for 0.1.1 ([#8077](https://github.com/astral-sh/ruff/pull/8077)) -- Avoid loading files for cached format results ([#8134](https://github.com/astral-sh/ruff/pull/8134)) -- Rework the documentation to incorporate the Ruff formatter ([#7732](https://github.com/astral-sh/ruff/pull/7732)) -- Move remaining lambda rule to deferred pass ([#8098](https://github.com/astral-sh/ruff/pull/8098)) -- Add compatibility test for `ruff-lsp` to CI ([#8016](https://github.com/astral-sh/ruff/pull/8016)) -- New `pycodestyle.max-line-length` option ([#8039](https://github.com/astral-sh/ruff/pull/8039)) +- Improve `magic-value-comparison` example in docs ([#8111](https://github.com/astral-sh/ruff/pull/8111)) ## 0.1.1 From 177ec825634ffbcdae4760abd05d9ae8c65c5f4f Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 24 Oct 2023 09:38:47 -0500 Subject: [PATCH 3/5] Bump verison to 0.1.2 --- Cargo.lock | 8 ++++---- README.md | 2 +- crates/flake8_to_ruff/Cargo.toml | 2 +- crates/ruff_cli/Cargo.toml | 2 +- crates/ruff_linter/Cargo.toml | 2 +- crates/ruff_shrinking/Cargo.toml | 2 +- docs/tutorial.md | 2 +- pyproject.toml | 2 +- scripts/benchmarks/pyproject.toml | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6f02f8af51984d..e4e5a1a51c02ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flake8-to-ruff" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anyhow", "clap", @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "ruff_cli" -version = "0.1.1" +version = "0.1.2" dependencies = [ "annotate-snippets 0.9.1", "anyhow", @@ -2188,7 +2188,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.1.1" +version = "0.1.2" dependencies = [ "aho-corasick", "annotate-snippets 0.9.1", @@ -2438,7 +2438,7 @@ dependencies = [ [[package]] name = "ruff_shrinking" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index 350b9d4b6ff3f0..9626672c43b6ea 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff # Run the Ruff linter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.1 + rev: v0.1.2 hooks: # Run the Ruff linter. - id: ruff diff --git a/crates/flake8_to_ruff/Cargo.toml b/crates/flake8_to_ruff/Cargo.toml index 34423f458463d6..63e1bf2c884e24 100644 --- a/crates/flake8_to_ruff/Cargo.toml +++ b/crates/flake8_to_ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flake8-to-ruff" -version = "0.1.1" +version = "0.1.2" description = """ Convert Flake8 configuration files to Ruff configuration files. """ diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 13a58a782335ab..f33ab771dee295 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_cli" -version = "0.1.1" +version = "0.1.2" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 2e0da9d8c1b000..a68c72ff5d3608 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.1.1" +version = "0.1.2" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_shrinking/Cargo.toml b/crates/ruff_shrinking/Cargo.toml index a7acf9645f7ac8..baf09e0959f81e 100644 --- a/crates/ruff_shrinking/Cargo.toml +++ b/crates/ruff_shrinking/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_shrinking" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/docs/tutorial.md b/docs/tutorial.md index 35118f88a40038..7a5b50bbd9f31a 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -284,7 +284,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be # Run the Ruff linter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.1 + rev: v0.1.2 hooks: - id: ruff # Run the Ruff formatter. diff --git a/pyproject.toml b/pyproject.toml index 7a6f106e306024..cfe5c816040613 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.1.1" +version = "0.1.2" description = "An extremely fast Python linter, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] readme = "README.md" diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index 159dff94c1af4f..4b83615bcb2c29 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.1.1" +version = "0.1.2" description = "" authors = ["Charles Marsh "] From 6759c91d7ebafa6ea1520445c326148d4446734d Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 24 Oct 2023 09:42:31 -0500 Subject: [PATCH 4/5] Format markdown --- CHANGELOG.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b9671e46e1fd..b0b1554b02012c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,11 @@ ## 0.1.2 ### Preview features -- [`pylint`] Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056)) -- [`pylint`] implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038)) -- [`pylint`] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953)) -- [`refurb`] Implement `read-whole-file` (`FURB101`) ([#7682](https://github.com/astral-sh/ruff/pull/7682)) + +- \[`pylint`\] Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056)) +- \[`pylint`\] implement `non-ascii-name` (`C2401`) ([#8038](https://github.com/astral-sh/ruff/pull/8038)) +- \[`pylint`\] Implement unnecessary-lambda (W0108) ([#7953](https://github.com/astral-sh/ruff/pull/7953)) +- \[`refurb`\] Implement `read-whole-file` (`FURB101`) ([#7682](https://github.com/astral-sh/ruff/pull/7682)) - Add fix for `E223`, `E224`, and `E242` ([#8143](https://github.com/astral-sh/ruff/pull/8143)) - Add fix for `E225`, `E226`, `E227`, and `E228` ([#8136](https://github.com/astral-sh/ruff/pull/8136)) - Add fix for `E252` ([#8142](https://github.com/astral-sh/ruff/pull/8142)) @@ -16,6 +17,7 @@ - Update `SIM401` to catch ternary operations ([#7415](https://github.com/astral-sh/ruff/pull/7415)) ### Rule changes + - Add `backports.strenum` to `deprecated-imports` ([#8113](https://github.com/astral-sh/ruff/pull/8113)) - Update `E721` to allow `is` and `is` not for direct type comparisons ([#7905](https://github.com/astral-sh/ruff/pull/7905)) - Update `SIM112` to ignore `https_proxy`, `http_proxy`, and `no_proxy` ([#8140](https://github.com/astral-sh/ruff/pull/8140)) @@ -23,6 +25,7 @@ - Update fix for `mutable-argument-defaults` (`B006`) to be unsafe ([#8108](https://github.com/astral-sh/ruff/pull/8108)) ### Formatter + - Change `line-ending` default to `auto` ([#8057](https://github.com/astral-sh/ruff/pull/8057)) - Respect parenthesized generators in `has_own_parentheses` ([#8100](https://github.com/astral-sh/ruff/pull/8100)) - Add caching to formatter ([#8089](https://github.com/astral-sh/ruff/pull/8089)) @@ -36,18 +39,22 @@ - Avoid loading files for cached format results ([#8134](https://github.com/astral-sh/ruff/pull/8134)) ### CLI + - Show the `ruff format` command in help menus ([#8167](https://github.com/astral-sh/ruff/pull/8167)) - Add `ruff version` command with long version display ([#8034](https://github.com/astral-sh/ruff/pull/8034)) ### Configuration + - New `pycodestyle.max-line-length` option ([#8039](https://github.com/astral-sh/ruff/pull/8039)) ### Bug fixes + - Detect `sys.version_info` slices in `outdated-version-block` ([#8112](https://github.com/astral-sh/ruff/pull/8112)) - Avoid if-else simplification for `TYPE_CHECKING` blocks ([#8072](https://github.com/astral-sh/ruff/pull/8072)) - Avoid false-positive print separator diagnostic with starred argument ([#8079](https://github.com/astral-sh/ruff/pull/8079)) ### Documentation + - Fix message for `too-many-arguments` lint ([#8092](https://github.com/astral-sh/ruff/pull/8092)) - Fix `extend-unsafe-fixes` and `extend-safe-fixes` example ([#8139](https://github.com/astral-sh/ruff/pull/8139)) - Add links to `flake8-import-conventions` options ([#8115](https://github.com/astral-sh/ruff/pull/8115)) @@ -217,4 +224,4 @@ _New rules are added in [preview](https://docs.astral.sh/ruff/preview/)._ ### Playground -- Fix playground `Quick Fix` action ([#7824](https://github.com/astral-sh/ruff/pull/7824)) \ No newline at end of file +- Fix playground `Quick Fix` action ([#7824](https://github.com/astral-sh/ruff/pull/7824)) From c7daa4e50f1147d9bddf1fefe5a2702b1f9214f3 Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 24 Oct 2023 10:11:32 -0500 Subject: [PATCH 5/5] Add highlight for formatter --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0b1554b02012c..a76e26066b8c52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.1.2 +This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter. +Try it today with `ruff format`. + ### Preview features - \[`pylint`\] Implement `non-ascii-module-import` (`C2403`) ([#8056](https://github.com/astral-sh/ruff/pull/8056))