From ea79f616bc0f75185723574c7032e340aa60941e Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 6 Mar 2024 11:59:04 -0800 Subject: [PATCH] Bump version to v0.3.1 (#10252) --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++ Cargo.lock | 6 +++--- README.md | 2 +- crates/ruff/Cargo.toml | 2 +- crates/ruff_linter/Cargo.toml | 2 +- crates/ruff_shrinking/Cargo.toml | 2 +- docs/integrations.md | 6 +++--- pyproject.toml | 3 ++- scripts/benchmarks/pyproject.toml | 2 +- 9 files changed, 48 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a22b673ac90c5..72e74a1d55131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Changelog +## 0.3.1 + +### Preview features + +- \[`pycodestyle`\] Fix E301 not triggering on decorated methods. ([#10117](https://github.com/astral-sh/ruff/pull/10117)) +- \[`pycodestyle`\] Respect `isort` settings in blank line rules (`E3*`) ([#10096](https://github.com/astral-sh/ruff/pull/10096)) +- \[`pycodestyle`\] Make blank lines in typing stub files optional (`E3*`) ([#10098](https://github.com/astral-sh/ruff/pull/10098)) +- \[`pylint`\] Implement `singledispatch-method` (`E1519`) ([#10140](https://github.com/astral-sh/ruff/pull/10140)) +- \[`pylint`\] Implement `useless-exception-statement` (`W0133`) ([#10176](https://github.com/astral-sh/ruff/pull/10176)) + +### Rule changes + +- \[`flake8-debugger`\] Check for use of `debugpy` and `ptvsd` debug modules (#10177) ([#10194](https://github.com/astral-sh/ruff/pull/10194)) +- \[`pyupgrade`\] Generate diagnostic for all valid f-string conversions regardless of line length (`UP032`) ([#10238](https://github.com/astral-sh/ruff/pull/10238)) +- \[`pep8_naming`\] Add fixes for `N804` and `N805` ([#10215](https://github.com/astral-sh/ruff/pull/10215)) + +### CLI + +- Colorize the output of `ruff format --diff` ([#10110](https://github.com/astral-sh/ruff/pull/10110)) +- Make `--config` and `--isolated` global flags ([#10150](https://github.com/astral-sh/ruff/pull/10150)) +- Correctly expand tildes and environment variables in paths passed to `--config` ([#10219](https://github.com/astral-sh/ruff/pull/10219)) + +### Configuration + +- Accept a PEP 440 version specifier for `required-version` ([#10216](https://github.com/astral-sh/ruff/pull/10216)) +- Implement isort's `default-section` setting ([#10149](https://github.com/astral-sh/ruff/pull/10149)) + +### Bug fixes + +- Remove trailing space from `CapWords` message ([#10220](https://github.com/astral-sh/ruff/pull/10220)) +- Respect external codes in file-level exemptions ([#10203](https://github.com/astral-sh/ruff/pull/10203)) +- \[`flake8-raise`\] Avoid false-positives for parens-on-raise with `future.exception()` (`RSE102`) ([#10206](https://github.com/astral-sh/ruff/pull/10206)) +- \[`pylint`\] Add fix for unary expressions in `PLC2801` ([#9587](https://github.com/astral-sh/ruff/pull/9587)) +- \[`ruff`\] Fix RUF028 not allowing `# fmt: skip` on match cases ([#10178](https://github.com/astral-sh/ruff/pull/10178)) + ## 0.3.0 This release introduces the new Ruff formatter 2024.2 style and adds a new lint rule to diff --git a/Cargo.lock b/Cargo.lock index 5828cfc4d76fa..1da6f891534b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1950,7 +1950,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "argfile", @@ -2111,7 +2111,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.3.0" +version = "0.3.1" dependencies = [ "aho-corasick", "annotate-snippets 0.9.2", @@ -2362,7 +2362,7 @@ dependencies = [ [[package]] name = "ruff_shrinking" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index 84cbd25414dfc..41f06b5f7696f 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 ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.3.0 + rev: v0.3.1 hooks: # Run the linter. - id: ruff diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 43f31ff524c0f..e1e13a49cae9c 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.3.0" +version = "0.3.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 5be1e804f4c0e..8a45fe4b9f6fd 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.3.0" +version = "0.3.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_shrinking/Cargo.toml b/crates/ruff_shrinking/Cargo.toml index ad6bf18edc5d2..b3075f482c5b5 100644 --- a/crates/ruff_shrinking/Cargo.toml +++ b/crates/ruff_shrinking/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_shrinking" -version = "0.3.0" +version = "0.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/docs/integrations.md b/docs/integrations.md index 8777914d8baf3..437109d355bb7 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -14,7 +14,7 @@ Ruff can be used as a [pre-commit](https://pre-commit.com) hook via [`ruff-pre-c ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.3.0 + rev: v0.3.1 hooks: # Run the linter. - id: ruff @@ -27,7 +27,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.3.0 + rev: v0.3.1 hooks: # Run the linter. - id: ruff @@ -41,7 +41,7 @@ To run the hooks over Jupyter Notebooks too, add `jupyter` to the list of allowe ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.3.0 + rev: v0.3.1 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 67c64a53eb153..1a0b2cf3a8fa5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.3.0" +version = "0.3.1" description = "An extremely fast Python linter and code formatter, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] readme = "README.md" @@ -73,6 +73,7 @@ force-exclude = ''' [tool.rooster] major_labels = [] # Ruff never uses the major version number minor_labels = ["breaking"] # Bump the minor version on breaking changes +version_tag_prefix = "v" changelog_ignore_labels = ["internal", "ci"] diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index 146bbcd7b0ad2..51505ecbcdd5a 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.3.0" +version = "0.3.1" description = "" authors = ["Charles Marsh "]