From 2750c413af957cda9147953a47c43ec033a6bc2c Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 2 Jan 2024 12:20:12 -0500 Subject: [PATCH] Bump version to 0.1.10 --- CHANGELOG.md | 57 ++++++++++++++++++++++++++++++- README.md | 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 | 2 +- scripts/benchmarks/pyproject.toml | 2 +- 8 files changed, 65 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f06e85ebc69cad..81e544dd0d3021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,60 @@ # Changelog +## 0.1.10 + +### Preview features +- [`ruff`] Add `never-union` rule to detect redundant `typing.NoReturn` and `typing.Never` ([#9217](https://github.com/astral-sh/ruff/pull/9217)) +- Improve `dummy_implementations` preview style formatting ([#9240](https://github.com/astral-sh/ruff/pull/9240)) +- Parenthesize multi-context managers ([#9222](https://github.com/astral-sh/ruff/pull/9222)) +- Add a fix for `never-union` ([#9218](https://github.com/astral-sh/ruff/pull/9218)) +- Normalise Hex and unicode escape sequences in string ([#9280](https://github.com/astral-sh/ruff/pull/9280)) +- Parenthesize long type annotations in annotated assignments ([#9210](https://github.com/astral-sh/ruff/pull/9210)) +- [flake8-pyi] Implement PYI058 ([#9313](https://github.com/astral-sh/ruff/pull/9313)) +- [`pylint`] Implement `empty-comment` (`PLR2044`) ([#9174](https://github.com/astral-sh/ruff/pull/9174)) +- [`refurb`] Implement `bit-count` (`FURB161`) ([#9265](https://github.com/astral-sh/ruff/pull/9265)) + +### Formatter +- Use `Display` for formatter parse errors ([#9316](https://github.com/astral-sh/ruff/pull/9316)) + +### CLI +- Improve responsiveness when invoked via Python ([#9315](https://github.com/astral-sh/ruff/pull/9315)) +- Add paths to toml parse errors ([#9358](https://github.com/astral-sh/ruff/pull/9358)) +- Add row and column numbers to formatted parse errors ([#9321](https://github.com/astral-sh/ruff/pull/9321)) +- Short rule messages should not end with a period ([#9345](https://github.com/astral-sh/ruff/pull/9345)) + +### Configuration +- Respect runtime-required decorators on functions ([#9317](https://github.com/astral-sh/ruff/pull/9317)) + +### Bug fixes +- Remove special pre-visit for module docstrings ([#9261](https://github.com/astral-sh/ruff/pull/9261)) +- Respect `unused-noqa` via `per-file-ignores` ([#9300](https://github.com/astral-sh/ruff/pull/9300)) +- Respect `__str__` definitions from super classes ([#9338](https://github.com/astral-sh/ruff/pull/9338)) +- [S507] fix doc recommended fix ([#9347](https://github.com/astral-sh/ruff/pull/9347)) +- Avoid `asyncio-dangling-task` for nonlocal and global bindings ([#9263](https://github.com/astral-sh/ruff/pull/9263)) +- Treat all `typing_extensions` members as typing aliases ([#9335](https://github.com/astral-sh/ruff/pull/9335)) +- Escape trailing placeholders in rule documentation ([#9301](https://github.com/astral-sh/ruff/pull/9301)) +- Wrap subscripted dicts in parens for f-string conversion ([#9238](https://github.com/astral-sh/ruff/pull/9238)) +- Fix scoping for generators in named expressions in classes ([#9248](https://github.com/astral-sh/ruff/pull/9248)) +- Respect mixed `return` and `raise` cases in return-type analysis ([#9310](https://github.com/astral-sh/ruff/pull/9310)) +- Avoid panic when comment is preceded by Unicode ([#9331](https://github.com/astral-sh/ruff/pull/9331)) +- [`refurb`] Avoid false positives for `math-constant` (`FURB152`) ([#9290](https://github.com/astral-sh/ruff/pull/9290)) +- Change PLR0917 error message to match other PLR09XX messages ([#9308](https://github.com/astral-sh/ruff/pull/9308)) +- [flake8-bandit/S506] Dont report violation when SafeLoader is imported from yaml.loader ([#9299](https://github.com/astral-sh/ruff/pull/9299)) +- Respect attribute chains when resolving builtin call paths ([#9309](https://github.com/astral-sh/ruff/pull/9309)) +- Avoid adding return types to stub methods ([#9277](https://github.com/astral-sh/ruff/pull/9277)) +- Fix continuation detection following multi-line strings ([#9332](https://github.com/astral-sh/ruff/pull/9332)) + +### Documentation +- Expand target name for better rule documentation ([#9302](https://github.com/astral-sh/ruff/pull/9302)) +- Document PERF102 fix unsafety ([#9351](https://github.com/astral-sh/ruff/pull/9351)) +- Add PyVista into the `Who's Using Ruff?` section ([#9296](https://github.com/astral-sh/ruff/pull/9296)) +- [`pyupgrade`] Document more fix unsafety for UP007 ([#9306](https://github.com/astral-sh/ruff/pull/9306)) +- Fix typos found by codespell ([#9346](https://github.com/astral-sh/ruff/pull/9346)) + +### Other changes +- Run cargo with `--locked` in CI ([#9247](https://github.com/astral-sh/ruff/pull/9247)) +- Port from obsolete wsl crate to is-wsl ([#9356](https://github.com/astral-sh/ruff/pull/9356)) + ## 0.1.9 ### Breaking changes @@ -661,4 +716,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 diff --git a/README.md b/README.md index 10fa328586e4cf..ecde50a9ea557f 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.9 + rev: v0.1.10 hooks: # Run the linter. - id: ruff diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 48411df79ef0ca..ffe33c33b57120 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_cli" -version = "0.1.9" +version = "0.1.10" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index a2f221765a7797..d72a969dbf0b7a 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.1.9" +version = "0.1.10" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_shrinking/Cargo.toml b/crates/ruff_shrinking/Cargo.toml index 38b839e7983be9..6b458c1ff36112 100644 --- a/crates/ruff_shrinking/Cargo.toml +++ b/crates/ruff_shrinking/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_shrinking" -version = "0.1.9" +version = "0.1.10" 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 0aeeae83cc8753..11c117da382a4e 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.9 + rev: v0.1.10 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.9 + rev: v0.1.10 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.9 + rev: v0.1.10 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 1937cb660e2011..ede1a723773b67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.1.9" +version = "0.1.10" description = "An extremely fast Python linter and code formatter, 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 9c8e578d039461..b82659e1f4fd0d 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.1.9" +version = "0.1.10" description = "" authors = ["Charles Marsh "]