diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 834ba4704..c9c8d2e23 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** - Add ability to control the source of Python distributions +- Upgrade Ruff to 0.4.5 - Upgrade PyApp to 0.22.0 for binary builds ***Fixed:*** diff --git a/ruff_defaults.toml b/ruff_defaults.toml index e7044d2bc..698e8e5a0 100644 --- a/ruff_defaults.toml +++ b/ruff_defaults.toml @@ -190,6 +190,7 @@ select = [ "FURB105", "FURB110", "FURB113", + "FURB116", "FURB118", "FURB129", "FURB131", @@ -435,6 +436,8 @@ select = [ "PYI055", "PYI056", "PYI058", + "PYI059", + "PYI062", "RET503", "RET504", "RET505", @@ -469,6 +472,7 @@ select = [ "RUF028", "RUF029", "RUF100", + "RUF101", "S101", "S102", "S103", diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index 3dac8696b..8b079d89a 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -720,6 +720,7 @@ def get_config(self, section: str) -> dict[str, Any]: 'FURB105', 'FURB110', 'FURB113', + 'FURB116', 'FURB118', 'FURB129', 'FURB131', @@ -786,6 +787,8 @@ def get_config(self, section: str) -> dict[str, Any]: 'PLW1641', 'PLW2101', 'PLW3201', + 'PYI059', + 'PYI062', 'RUF021', 'RUF022', 'RUF023', @@ -795,6 +798,7 @@ def get_config(self, section: str) -> dict[str, Any]: 'RUF027', 'RUF028', 'RUF029', + 'RUF101', 'S401', 'S402', 'S403', diff --git a/src/hatch/env/internal/static_analysis.py b/src/hatch/env/internal/static_analysis.py index c40bfff90..c54895a8f 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.2' +RUFF_DEFAULT_VERSION: str = '0.4.5'