diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 351e8bc54..e68f4a452 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -28,7 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - The `env show` command now outputs data about all internal environments when using the `--json` flag - Upgrade default CPython distributions to 20240415 - Upgrade default PyPy distributions to 7.3.15 -- Upgrade Ruff to 0.4.1 +- Upgrade Ruff to 0.4.2 - Upgrade PyApp to 0.19.0 for binary builds - Bump the minimum supported version of Hatchling to 1.24.2 - Bump the minimum supported version of virtualenv to 20.26.1 diff --git a/ruff_defaults.toml b/ruff_defaults.toml index b55849d60..e7044d2bc 100644 --- a/ruff_defaults.toml +++ b/ruff_defaults.toml @@ -212,6 +212,7 @@ select = [ "FURB180", "FURB181", "FURB187", + "FURB192", "G001", "G002", "G003", diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index 0d8183c0a..3dac8696b 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -742,6 +742,7 @@ def get_config(self, section: str) -> dict[str, Any]: 'FURB180', 'FURB181', 'FURB187', + 'FURB192', 'PERF403', 'PLC0415', 'PLC1901', diff --git a/src/hatch/env/internal/static_analysis.py b/src/hatch/env/internal/static_analysis.py index f441aa5dd..c40bfff90 100644 --- a/src/hatch/env/internal/static_analysis.py +++ b/src/hatch/env/internal/static_analysis.py @@ -17,4 +17,4 @@ def get_default_config() -> dict[str, Any]: } -RUFF_DEFAULT_VERSION: str = '0.4.1' +RUFF_DEFAULT_VERSION: str = '0.4.2'