Bump version to v0.3.1 (#10252)

This commit is contained in:
Charlie Marsh 2024-03-06 11:59:04 -08:00 committed by GitHub
parent f999b1b617
commit ea79f616bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 48 additions and 12 deletions

View File

@ -1,5 +1,40 @@
# Changelog
## 0.3.1
### Preview features
- \[`pycodestyle`\] Fix E301 not triggering on decorated methods. ([#10117](https://github.com/astral-sh/ruff/pull/10117))
- \[`pycodestyle`\] Respect `isort` settings in blank line rules (`E3*`) ([#10096](https://github.com/astral-sh/ruff/pull/10096))
- \[`pycodestyle`\] Make blank lines in typing stub files optional (`E3*`) ([#10098](https://github.com/astral-sh/ruff/pull/10098))
- \[`pylint`\] Implement `singledispatch-method` (`E1519`) ([#10140](https://github.com/astral-sh/ruff/pull/10140))
- \[`pylint`\] Implement `useless-exception-statement` (`W0133`) ([#10176](https://github.com/astral-sh/ruff/pull/10176))
### Rule changes
- \[`flake8-debugger`\] Check for use of `debugpy` and `ptvsd` debug modules (#10177) ([#10194](https://github.com/astral-sh/ruff/pull/10194))
- \[`pyupgrade`\] Generate diagnostic for all valid f-string conversions regardless of line length (`UP032`) ([#10238](https://github.com/astral-sh/ruff/pull/10238))
- \[`pep8_naming`\] Add fixes for `N804` and `N805` ([#10215](https://github.com/astral-sh/ruff/pull/10215))
### CLI
- Colorize the output of `ruff format --diff` ([#10110](https://github.com/astral-sh/ruff/pull/10110))
- Make `--config` and `--isolated` global flags ([#10150](https://github.com/astral-sh/ruff/pull/10150))
- Correctly expand tildes and environment variables in paths passed to `--config` ([#10219](https://github.com/astral-sh/ruff/pull/10219))
### Configuration
- Accept a PEP 440 version specifier for `required-version` ([#10216](https://github.com/astral-sh/ruff/pull/10216))
- Implement isort's `default-section` setting ([#10149](https://github.com/astral-sh/ruff/pull/10149))
### Bug fixes
- Remove trailing space from `CapWords` message ([#10220](https://github.com/astral-sh/ruff/pull/10220))
- Respect external codes in file-level exemptions ([#10203](https://github.com/astral-sh/ruff/pull/10203))
- \[`flake8-raise`\] Avoid false-positives for parens-on-raise with `future.exception()` (`RSE102`) ([#10206](https://github.com/astral-sh/ruff/pull/10206))
- \[`pylint`\] Add fix for unary expressions in `PLC2801` ([#9587](https://github.com/astral-sh/ruff/pull/9587))
- \[`ruff`\] Fix RUF028 not allowing `# fmt: skip` on match cases ([#10178](https://github.com/astral-sh/ruff/pull/10178))
## 0.3.0
This release introduces the new Ruff formatter 2024.2 style and adds a new lint rule to

6
Cargo.lock generated
View File

@ -1950,7 +1950,7 @@ dependencies = [
[[package]]
name = "ruff"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"argfile",
@ -2111,7 +2111,7 @@ dependencies = [
[[package]]
name = "ruff_linter"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"aho-corasick",
"annotate-snippets 0.9.2",
@ -2362,7 +2362,7 @@ dependencies = [
[[package]]
name = "ruff_shrinking"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"clap",

View File

@ -151,7 +151,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.3.0
rev: v0.3.1
hooks:
# Run the linter.
- id: ruff

View File

@ -1,6 +1,6 @@
[package]
name = "ruff"
version = "0.3.0"
version = "0.3.1"
publish = false
authors = { workspace = true }
edition = { workspace = true }

View File

@ -1,6 +1,6 @@
[package]
name = "ruff_linter"
version = "0.3.0"
version = "0.3.1"
publish = false
authors = { workspace = true }
edition = { workspace = true }

View File

@ -1,6 +1,6 @@
[package]
name = "ruff_shrinking"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -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.3.0
rev: v0.3.1
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.3.0
rev: v0.3.1
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.3.0
rev: v0.3.1
hooks:
# Run the linter.
- id: ruff

View File

@ -4,7 +4,7 @@ build-backend = "maturin"
[project]
name = "ruff"
version = "0.3.0"
version = "0.3.1"
description = "An extremely fast Python linter and code formatter, written in Rust."
authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }]
readme = "README.md"
@ -73,6 +73,7 @@ force-exclude = '''
[tool.rooster]
major_labels = [] # Ruff never uses the major version number
minor_labels = ["breaking"] # Bump the minor version on breaking changes
version_tag_prefix = "v"
changelog_ignore_labels = ["internal", "ci"]

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "scripts"
version = "0.3.0"
version = "0.3.1"
description = ""
authors = ["Charles Marsh <charlie.r.marsh@gmail.com>"]