From 3956f38999ff7c036e9d1ac9410b3eff834cb158 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 8 Nov 2023 16:00:57 -0600 Subject: [PATCH] Prepare release 0.1.5 (#8570) [Rendered CHANGELOG](https://github.com/astral-sh/ruff/blob/release/015/CHANGELOG.md#015) --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++ 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/integrations.md | 6 ++-- pyproject.toml | 3 +- scripts/benchmarks/pyproject.toml | 2 +- 10 files changed, 64 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f06f1226b46a..6ea976c977073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,54 @@ # Changelog +## 0.1.5 + +### Preview features + +- \[`flake8-bandit`\] Implement `mako-templates` (`S702`) ([#8533](https://github.com/astral-sh/ruff/pull/8533)) +- \[`flake8-trio`\] Implement `TRIO105` ([#8490](https://github.com/astral-sh/ruff/pull/8490)) +- \[`flake8-trio`\] Implement `TRIO109` ([#8534](https://github.com/astral-sh/ruff/pull/8534)) +- \[`flake8-trio`\] Implement `TRIO110` ([#8537](https://github.com/astral-sh/ruff/pull/8537)) +- \[`flake8-trio`\] Implement `TRIO115` ([#8486](https://github.com/astral-sh/ruff/pull/8486)) +- \[`refurb`\] Implement `type-none-comparison` (`FURB169`) ([#8487](https://github.com/astral-sh/ruff/pull/8487)) +- Flag all comparisons against builtin types in `E721` ([#8491](https://github.com/astral-sh/ruff/pull/8491)) +- Make `SIM118` fix as safe when the expression is a known dictionary ([#8525](https://github.com/astral-sh/ruff/pull/8525)) + +### Formatter + +- Fix multiline lambda expression statement formatting ([#8466](https://github.com/astral-sh/ruff/pull/8466)) + +### CLI + +- Add hidden `--extension` to override inference of source type from file extension ([#8373](https://github.com/astral-sh/ruff/pull/8373)) + +### Configuration + +- Account for selector specificity when merging `extend_unsafe_fixes` and `override extend_safe_fixes` ([#8444](https://github.com/astral-sh/ruff/pull/8444)) +- Add support for disabling cache with `RUFF_NO_CACHE` environment variable ([#8538](https://github.com/astral-sh/ruff/pull/8538)) + +### Bug fixes + +- \[`E721`\] Flag comparisons to `memoryview` ([#8485](https://github.com/astral-sh/ruff/pull/8485)) +- Allow collapsed-ellipsis bodies in other statements ([#8499](https://github.com/astral-sh/ruff/pull/8499)) +- Avoid `D301` autofix for `u` prefixed strings ([#8495](https://github.com/astral-sh/ruff/pull/8495)) +- Only flag `flake8-trio` rules when `trio` import is present ([#8550](https://github.com/astral-sh/ruff/pull/8550)) +- Reject more syntactically invalid Python programs ([#8524](https://github.com/astral-sh/ruff/pull/8524)) +- Avoid raising `TRIO115` violations for `trio.sleep(...)` calls with non-number values ([#8532](https://github.com/astral-sh/ruff/pull/8532)) +- Fix `F841` false negative on assignment to multiple variables ([#8489](https://github.com/astral-sh/ruff/pull/8489)) + +### Documentation + +- Fix link to isort `known-first-party` ([#8562](https://github.com/astral-sh/ruff/pull/8562)) +- Add notes on fix safety to a few rules ([#8500](https://github.com/astral-sh/ruff/pull/8500)) +- Add missing toml config tabs ([#8512](https://github.com/astral-sh/ruff/pull/8512)) +- Add instructions for configuration of Emacs ([#8488](https://github.com/astral-sh/ruff/pull/8488)) +- Improve detail link contrast in dark mode ([#8548](https://github.com/astral-sh/ruff/pull/8548)) +- Fix typo in example ([#8506](https://github.com/astral-sh/ruff/pull/8506)) +- Added tabs for configuration files in the documentation ([#8480](https://github.com/astral-sh/ruff/pull/8480)) +- Recommend `project.requires-python` over `target-version` ([#8513](https://github.com/astral-sh/ruff/pull/8513)) +- Add singleton escape hatch to `B008` documentation ([#8501](https://github.com/astral-sh/ruff/pull/8501)) +- Fix tab configuration docs ([#8502](https://github.com/astral-sh/ruff/pull/8502)) + ## 0.1.4 ### Preview features diff --git a/Cargo.lock b/Cargo.lock index 0d6c0f61823e6..84575ae060a30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flake8-to-ruff" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -2060,7 +2060,7 @@ dependencies = [ [[package]] name = "ruff_cli" -version = "0.1.4" +version = "0.1.5" dependencies = [ "annotate-snippets 0.9.1", "anyhow", @@ -2196,7 +2196,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.1.4" +version = "0.1.5" dependencies = [ "aho-corasick", "annotate-snippets 0.9.1", @@ -2447,7 +2447,7 @@ dependencies = [ [[package]] name = "ruff_shrinking" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index 5c1dd57c4a688..f158bff00a881 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,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.1.4 + rev: v0.1.5 hooks: # Run the linter. - id: ruff diff --git a/crates/flake8_to_ruff/Cargo.toml b/crates/flake8_to_ruff/Cargo.toml index f023a98f08a57..2dfc22c75b3b8 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.4" +version = "0.1.5" description = """ Convert Flake8 configuration files to Ruff configuration files. """ diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 74e99f5199d9f..1bc628f3cb84e 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_cli" -version = "0.1.4" +version = "0.1.5" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 178c3bcd6dac1..87ca38bc538ec 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.1.4" +version = "0.1.5" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_shrinking/Cargo.toml b/crates/ruff_shrinking/Cargo.toml index 598d363d11831..8ebbf0af0c24d 100644 --- a/crates/ruff_shrinking/Cargo.toml +++ b/crates/ruff_shrinking/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_shrinking" -version = "0.1.4" +version = "0.1.5" 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 df8aa06505bd2..50c7c57654366 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.1.4 + rev: v0.1.5 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.1.4 + rev: v0.1.5 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.1.4 + rev: v0.1.5 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 1c717c9e9b9aa..f87c314480d1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.1.4" +version = "0.1.5" description = "An extremely fast Python linter and code formatter, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] readme = "README.md" @@ -83,6 +83,7 @@ changelog_sections.formatter = "Formatter" changelog_sections.cli = "CLI" changelog_sections.configuration = "Configuration" changelog_sections.bug = "Bug fixes" +changelog_sections.documentation = "Documentation" changelog_sections.__unknown__ = "Other changes" # We exclude contributors from the CHANGELOG file diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index 1d3566444897c..c9e07093aca48 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.1.4" +version = "0.1.5" description = "" authors = ["Charles Marsh "]