From 7c9bbcf4e2d173bde625aed26a0056d354f54545 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Mon, 11 Sep 2023 18:18:11 +0200 Subject: [PATCH] Bump version to 0.0.288 (#7271) Co-authored-by: Zanie Blue --- BREAKING_CHANGES.md | 15 +++++++++++++++ Cargo.lock | 6 +++--- README.md | 2 +- crates/flake8_to_ruff/Cargo.toml | 2 +- crates/ruff/Cargo.toml | 2 +- crates/ruff_cli/Cargo.toml | 2 +- docs/tutorial.md | 2 +- docs/usage.md | 6 +++--- pyproject.toml | 2 +- 9 files changed, 27 insertions(+), 12 deletions(-) diff --git a/BREAKING_CHANGES.md b/BREAKING_CHANGES.md index c10e07250f..bdda6f93f9 100644 --- a/BREAKING_CHANGES.md +++ b/BREAKING_CHANGES.md @@ -1,5 +1,20 @@ # Breaking Changes +## 0.0.288 + +### Remove support for emoji identifiers ([#7212](https://github.com/astral-sh/ruff/pull/7212)) + +Previously, Ruff supported the non-standard compliant emoji identifiers e.g. `📦 = 1`. +We decided to remove this non-standard language extension, and Ruff now reports syntax errors for emoji identifiers in your code, the same as CPython. + +### Improved GitLab fingerprints ([#7203](https://github.com/astral-sh/ruff/pull/7203)) + +GitLab uses fingerprints to identify new, existing, or fixed violations. Previously, Ruff included the violation's position in the fingerprint. Using the location has the downside that changing any code before the violation causes the fingerprint to change, resulting in GitLab reporting one fixed and one new violation even though it is a pre-existing violation. + +Ruff now uses a more stable location-agnostic fingerprint to minimize that existing violations incorrectly get marked as fixed and re-reported as new violations. + +Expect GitLab to report each pre-existing violation in your project as fixed and a new violation in your Ruff upgrade PR. + ## 0.0.283 / 0.284 ### The target Python version now defaults to 3.8 instead of 3.10 ([#6397](https://github.com/astral-sh/ruff/pull/6397)) diff --git a/Cargo.lock b/Cargo.lock index 1bedcca4a0..d1dfed4308 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -821,7 +821,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flake8-to-ruff" -version = "0.0.287" +version = "0.0.288" dependencies = [ "anyhow", "clap", @@ -2037,7 +2037,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.0.287" +version = "0.0.288" dependencies = [ "annotate-snippets 0.9.1", "anyhow", @@ -2135,7 +2135,7 @@ dependencies = [ [[package]] name = "ruff_cli" -version = "0.0.287" +version = "0.0.288" dependencies = [ "annotate-snippets 0.9.1", "anyhow", diff --git a/README.md b/README.md index e7dd44d3bc..6c623e150e 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com) hook: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff ``` diff --git a/crates/flake8_to_ruff/Cargo.toml b/crates/flake8_to_ruff/Cargo.toml index ee23c68566..54321cc6b6 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.0.287" +version = "0.0.288" description = """ Convert Flake8 configuration files to Ruff configuration files. """ diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index d893573d65..190e688299 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.0.287" +version = "0.0.288" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 4f913e0dd4..97a6246350 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_cli" -version = "0.0.287" +version = "0.0.288" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/tutorial.md b/docs/tutorial.md index d3529a44ce..812fda1aa0 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -242,7 +242,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff ``` diff --git a/docs/usage.md b/docs/usage.md index af9e9f6b87..c17e38c3a2 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -23,7 +23,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com) hook: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff ``` @@ -33,7 +33,7 @@ Or, to enable autofix: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] @@ -44,7 +44,7 @@ Or, to run the hook on Jupyter Notebooks too: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.287 + rev: v0.0.288 hooks: - id: ruff types_or: [python, pyi, jupyter] diff --git a/pyproject.toml b/pyproject.toml index 94d57b5df4..a82f45edc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.0.287" +version = "0.0.288" description = "An extremely fast Python linter, written in Rust." authors = [{ name = "Charlie Marsh", email = "charlie.r.marsh@gmail.com" }] maintainers = [{ name = "Charlie Marsh", email = "charlie.r.marsh@gmail.com" }]