Skip to content

Commit

Permalink
Bump version to v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Nov 17, 2023
1 parent dca430f commit e5c8736
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 11 deletions.
94 changes: 93 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,97 @@
# Changelog

## 0.1.6

### Preview features
- Extend `unnecessary-pass` (`PIE790`) to include ellipses in preview ([#8641](/~https://github.com/astral-sh/ruff/pull/8641))
- Add autofix for PIE800 ([#8668](/~https://github.com/astral-sh/ruff/pull/8668))
- Add check for is comparison with mutable initialisers to rule F632 ([#8607](/~https://github.com/astral-sh/ruff/pull/8607))
- Fix FBT001 false negative with unions and optional ([#7501](/~https://github.com/astral-sh/ruff/pull/7501))

### Rule changes
- Implement FURB136 ([#8664](/~https://github.com/astral-sh/ruff/pull/8664))
- Update `D208` to preserve indentation offsets when fixing overindented lines ([#8699](/~https://github.com/astral-sh/ruff/pull/8699))
- refine pyupgrade's TimeoutErrorAlias lint (UP041) to remove false positives ([#8587](/~https://github.com/astral-sh/ruff/pull/8587))
- Add new rule to check for useless quote escapes ([#8630](/~https://github.com/astral-sh/ruff/pull/8630))
- Generalize PIE807 to handle dict literals ([#8608](/~https://github.com/astral-sh/ruff/pull/8608))

### Formatter
- Preserve trailing semicolon for Notebooks ([#8590](/~https://github.com/astral-sh/ruff/pull/8590))
- Compare formatted and unformatted ASTs during formatter tests ([#8624](/~https://github.com/astral-sh/ruff/pull/8624))
- Fix instability with await fluent style ([#8676](/~https://github.com/astral-sh/ruff/pull/8676))

### CLI
- Improve debug printing for resolving origin of config settings ([#8729](/~https://github.com/astral-sh/ruff/pull/8729))
- Write unchanged, excluded files to stdout when read via stdin ([#8596](/~https://github.com/astral-sh/ruff/pull/8596))

### Configuration
- Support local and dynamic class- and static-method decorators ([#8592](/~https://github.com/astral-sh/ruff/pull/8592))

### Bug fixes
- Remove repeated and erroneous scoped settings headers in docs ([#8670](/~https://github.com/astral-sh/ruff/pull/8670))
- Use function range for `no-self-use` ([#8637](/~https://github.com/astral-sh/ruff/pull/8637))
- Treat display as a builtin in IPython ([#8707](/~https://github.com/astral-sh/ruff/pull/8707))
- Omit unrolled augmented assignments in `PIE794` ([#8634](/~https://github.com/astral-sh/ruff/pull/8634))
- Consider the new f-string tokens for `flake8-commas` ([#8582](/~https://github.com/astral-sh/ruff/pull/8582))
- Fix ordering for `force-sort-within-sections` ([#8665](/~https://github.com/astral-sh/ruff/pull/8665))
- Avoid `FURB113` autofix if comments are present ([#8494](/~https://github.com/astral-sh/ruff/pull/8494))
- F-strings doesn't contain bytes literal for `PLW0129` ([#8675](/~https://github.com/astral-sh/ruff/pull/8675))
- Fix unnecessary parentheses in UP007 fix ([#8610](/~https://github.com/astral-sh/ruff/pull/8610))
- Allow overriding pydocstyle convention rules ([#8586](/~https://github.com/astral-sh/ruff/pull/8586))
- Update UP032 to unescape curly braces in literal parts of converted strings ([#8697](/~https://github.com/astral-sh/ruff/pull/8697))
- Avoid syntax error via importing trio.lowlevel ([#8730](/~https://github.com/astral-sh/ruff/pull/8730))
- Run unicode prefix rule over tokens ([#8709](/~https://github.com/astral-sh/ruff/pull/8709))
- Avoid recommending Self usages in metaclasses ([#8639](/~https://github.com/astral-sh/ruff/pull/8639))
- Avoid inserting trailing commas within f-strings ([#8574](/~https://github.com/astral-sh/ruff/pull/8574))
- Slice source code instead of generating it for `EM` fixes ([#7746](/~https://github.com/astral-sh/ruff/pull/7746))
- Trim trailing empty strings when converting to f-strings ([#8712](/~https://github.com/astral-sh/ruff/pull/8712))
- Allow whitespace around colon in slices for `whitespace-before-punctuation` (`E203`) ([#8654](/~https://github.com/astral-sh/ruff/pull/8654))
- Avoid missing namespace violations in scripts with shebangs ([#8710](/~https://github.com/astral-sh/ruff/pull/8710))
- Improve detection of `TYPE_CHECKING` blocks imported from `typing_extensions` or `_typeshed` ([#8429](/~https://github.com/astral-sh/ruff/pull/8429))

### Documentation
- Remove unecessary commentary in PD901 message ([#8625](/~https://github.com/astral-sh/ruff/pull/8625))
- Fix docs typo for `ruff format` preview configuration ([#8611](/~https://github.com/astral-sh/ruff/pull/8611))
- Redirect from rule codes to rule pages in docs ([#8636](/~https://github.com/astral-sh/ruff/pull/8636))
- Improve N803 example ([#8714](/~https://github.com/astral-sh/ruff/pull/8714))
- Document context manager breaking deviation vs. Black ([#8597](/~https://github.com/astral-sh/ruff/pull/8597))
- Fix typo ([#8735](/~https://github.com/astral-sh/ruff/pull/8735))
- Document conventions in the FAQ ([#8638](/~https://github.com/astral-sh/ruff/pull/8638))
- Apply consistent code block labels ([#8563](/~https://github.com/astral-sh/ruff/pull/8563))
- Fix permalink to convention setting ([#8575](/~https://github.com/astral-sh/ruff/pull/8575))
- Improve docs for RUF001, RUF002 and RUF003 ([#8628](/~https://github.com/astral-sh/ruff/pull/8628))
- Add missing config tabs ([#8558](/~https://github.com/astral-sh/ruff/pull/8558))

### Other changes
- Treat `class C: ...` and `class C(): ...` equivalently ([#8659](/~https://github.com/astral-sh/ruff/pull/8659))
- Revert "Avoid inserting trailing commas within f-strings" ([#8576](/~https://github.com/astral-sh/ruff/pull/8576))
- Bump pyproject-toml from 0.8.0 to 0.8.1 ([#8648](/~https://github.com/astral-sh/ruff/pull/8648))
- Add starlette as a user of ruff ([#8672](/~https://github.com/astral-sh/ruff/pull/8672))
- Detect runtime-evaluated base classes defined in the current file ([#8572](/~https://github.com/astral-sh/ruff/pull/8572))
- Make unpacked assignment a flag rather than a `BindingKind` ([#8595](/~https://github.com/astral-sh/ruff/pull/8595))
- Bump fs-err from 2.9.0 to 2.10.0 ([#8649](/~https://github.com/astral-sh/ruff/pull/8649))
- Add a `BindingKind` for `WithItem` variables ([#8594](/~https://github.com/astral-sh/ruff/pull/8594))
- Add autotyping-like return type inference for annotation rules ([#8643](/~https://github.com/astral-sh/ruff/pull/8643))
- Add fix for `future-required-type-annotation` ([#8711](/~https://github.com/astral-sh/ruff/pull/8711))
- Omit Insiders-only plugin when building docs on CI ([#8652](/~https://github.com/astral-sh/ruff/pull/8652))
- Bump smallvec from 1.11.1 to 1.11.2 ([#8647](/~https://github.com/astral-sh/ruff/pull/8647))
- Implement autofix for `unnecessary-lambda` (`PLW0108`) ([#8621](/~https://github.com/astral-sh/ruff/pull/8621))
- Implement autofix for `multiple-spaces-after-keyword` and `multiple-spaces-before-keyword` ([#8622](/~https://github.com/astral-sh/ruff/pull/8622))
- ruff_python_formatter: copy and inline shared traits ([#8656](/~https://github.com/astral-sh/ruff/pull/8656))
- Implement autofix for `multiple-spaces-after-operator` and `multiple-spaces-before-operator` ([#8623](/~https://github.com/astral-sh/ruff/pull/8623))
- Add `--skip-magic-trailing-comma` to formatter dev comment ([#8689](/~https://github.com/astral-sh/ruff/pull/8689))
- [pylint] Implement redefined-argument-from-local (R1704) ([#8159](/~https://github.com/astral-sh/ruff/pull/8159))
- Remove `pyproject.toml` from fixtures directory ([#8726](/~https://github.com/astral-sh/ruff/pull/8726))
- isort: Support disabling sections with ``no-sections = true`` ([#8657](/~https://github.com/astral-sh/ruff/pull/8657))
- Fix lingering generated reference for MkDocs ([#8658](/~https://github.com/astral-sh/ruff/pull/8658))
- Bump annotate-snippets from 0.9.1 to 0.9.2 ([#8646](/~https://github.com/astral-sh/ruff/pull/8646))
- Use AST transformer for `relocate` ([#8660](/~https://github.com/astral-sh/ruff/pull/8660))
- Update to Rust 1.74 and use new clippy lints table ([#8722](/~https://github.com/astral-sh/ruff/pull/8722))
- Bump quick-junit from 0.3.3 to 0.3.5 ([#8645](/~https://github.com/astral-sh/ruff/pull/8645))
- [isort] Simplify code structure for ordering imports ([#8685](/~https://github.com/astral-sh/ruff/pull/8685))
- Add River in "Who's Using Ruff?" section ([#8740](/~https://github.com/astral-sh/ruff/pull/8740))
- List all ipython builtins ([#8719](/~https://github.com/astral-sh/ruff/pull/8719))

## 0.1.5

### Preview features
Expand Down Expand Up @@ -381,4 +473,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))
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.5
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion crates/flake8_to_ruff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flake8-to-ruff"
version = "0.1.5"
version = "0.1.6"
description = """
Convert Flake8 configuration files to Ruff configuration files.
"""
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruff_cli"
version = "0.1.5"
version = "0.1.6"
publish = false
authors = { workspace = true }
edition = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_linter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruff_linter"
version = "0.1.5"
version = "0.1.6"
publish = false
authors = { workspace = true }
edition = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_shrinking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruff_shrinking"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 3 additions & 3 deletions docs/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.5
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
Expand All @@ -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.5
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
Expand All @@ -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.5
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "ruff"
version = "0.1.5"
version = "0.1.6"
description = "An extremely fast Python linter and code formatter, written in Rust."
authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion scripts/benchmarks/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "scripts"
version = "0.1.5"
version = "0.1.6"
description = ""
authors = ["Charles Marsh <charlie.r.marsh@gmail.com>"]

Expand Down

0 comments on commit e5c8736

Please sign in to comment.