diff --git a/CHANGELOG.md b/CHANGELOG.md index f06e85ebc69ca..baf2fc4e511b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # Changelog +## 0.1.10 + +### Preview features + +- Improve `dummy_implementations` preview style formatting ([#9240](https://github.com/astral-sh/ruff/pull/9240)) +- Normalise Hex and unicode escape sequences in strings ([#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)) +- Parenthesize multi-context managers in `with` statements ([#9222](https://github.com/astral-sh/ruff/pull/9222)) +- \[`flake8-pyi`\] Implement `generator-return-from-iter-method` (`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)) +- \[`ruff`\] Add `never-union` rule to detect redundant `typing.NoReturn` and `typing.Never` ([#9217](https://github.com/astral-sh/ruff/pull/9217)) + +### CLI + +- Add paths to TOML parse errors ([#9358](https://github.com/astral-sh/ruff/pull/9358)) +- Add row and column numbers to formatter parse errors ([#9321](https://github.com/astral-sh/ruff/pull/9321)) +- Improve responsiveness when invoked via Python ([#9315](https://github.com/astral-sh/ruff/pull/9315)) +- 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 + +- Avoid `asyncio-dangling-task` for nonlocal and global bindings ([#9263](https://github.com/astral-sh/ruff/pull/9263)) +- Escape trailing placeholders in rule documentation ([#9301](https://github.com/astral-sh/ruff/pull/9301)) +- Fix continuation detection following multi-line strings ([#9332](https://github.com/astral-sh/ruff/pull/9332)) +- Fix scoping for generators in named expressions in classes ([#9248](https://github.com/astral-sh/ruff/pull/9248)) +- Port from obsolete wsl crate to is-wsl ([#9356](https://github.com/astral-sh/ruff/pull/9356)) +- Remove special pre-visit for module docstrings ([#9261](https://github.com/astral-sh/ruff/pull/9261)) +- Respect `__str__` definitions from super classes ([#9338](https://github.com/astral-sh/ruff/pull/9338)) +- Respect `unused-noqa` via `per-file-ignores` ([#9300](https://github.com/astral-sh/ruff/pull/9300)) +- Respect attribute chains when resolving builtin call paths ([#9309](https://github.com/astral-sh/ruff/pull/9309)) +- Treat all `typing_extensions` members as typing aliases ([#9335](https://github.com/astral-sh/ruff/pull/9335)) +- Use `Display` for formatter parse errors ([#9316](https://github.com/astral-sh/ruff/pull/9316)) +- Wrap subscripted dicts in parens for f-string conversion ([#9238](https://github.com/astral-sh/ruff/pull/9238)) +- \[`flake8-annotations`\] Avoid adding return types to stub methods ([#9277](https://github.com/astral-sh/ruff/pull/9277)) +- \[`flake8-annotations`\] Respect mixed `return` and `raise` cases in return-type analysis ([#9310](https://github.com/astral-sh/ruff/pull/9310)) +- \[`flake8-bandit`\] Don't report violations when `SafeLoader` is imported from `yaml.loader` (`S506`) ([#9299](https://github.com/astral-sh/ruff/pull/9299)) +- \[`pylint`\] Avoid panic when comment is preceded by Unicode ([#9331](https://github.com/astral-sh/ruff/pull/9331)) +- \[`pylint`\] Change `PLR0917` error message to match other `PLR09XX` messages ([#9308](https://github.com/astral-sh/ruff/pull/9308)) +- \[`refurb`\] Avoid false positives for `math-constant` (`FURB152`) ([#9290](https://github.com/astral-sh/ruff/pull/9290)) + +### Documentation + +- Expand target name for better rule documentation ([#9302](https://github.com/astral-sh/ruff/pull/9302)) +- Fix typos found by codespell ([#9346](https://github.com/astral-sh/ruff/pull/9346)) +- \[`perflint`\] Document `PERF102` fix un-safety ([#9351](https://github.com/astral-sh/ruff/pull/9351)) +- \[`pyupgrade`\] Document `UP007` fix un-safety ([#9306](https://github.com/astral-sh/ruff/pull/9306)) + ## 0.1.9 ### Breaking changes diff --git a/Cargo.lock b/Cargo.lock index 4d5ac35b1f99f..c4e87d82ad695 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2049,7 +2049,7 @@ dependencies = [ [[package]] name = "ruff_cli" -version = "0.1.9" +version = "0.1.10" dependencies = [ "anyhow", "argfile", @@ -2176,7 +2176,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.1.9" +version = "0.1.10" dependencies = [ "aho-corasick", "annotate-snippets 0.9.2", @@ -2427,7 +2427,7 @@ dependencies = [ [[package]] name = "ruff_shrinking" -version = "0.1.9" +version = "0.1.10" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index 10fa328586e4c..ecde50a9ea557 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 48411df79ef0c..ffe33c33b5712 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 a2f221765a779..d72a969dbf0b7 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 38b839e7983be..6b458c1ff3611 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 0aeeae83cc875..11c117da382a4 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 1937cb660e201..ede1a723773b6 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 9c8e578d03946..b82659e1f4fd0 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 "]