Skip to content

Commit

Permalink
Upgrade Ruff to 0.4.5 (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored May 28, 2024
1 parent 6d8ad71 commit dcec650
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:***
Expand Down
4 changes: 4 additions & 0 deletions ruff_defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ select = [
"FURB105",
"FURB110",
"FURB113",
"FURB116",
"FURB118",
"FURB129",
"FURB131",
Expand Down Expand Up @@ -435,6 +436,8 @@ select = [
"PYI055",
"PYI056",
"PYI058",
"PYI059",
"PYI062",
"RET503",
"RET504",
"RET505",
Expand Down Expand Up @@ -469,6 +472,7 @@ select = [
"RUF028",
"RUF029",
"RUF100",
"RUF101",
"S101",
"S102",
"S103",
Expand Down
4 changes: 4 additions & 0 deletions src/hatch/cli/fmt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ def get_config(self, section: str) -> dict[str, Any]:
'FURB105',
'FURB110',
'FURB113',
'FURB116',
'FURB118',
'FURB129',
'FURB131',
Expand Down Expand Up @@ -786,6 +787,8 @@ def get_config(self, section: str) -> dict[str, Any]:
'PLW1641',
'PLW2101',
'PLW3201',
'PYI059',
'PYI062',
'RUF021',
'RUF022',
'RUF023',
Expand All @@ -795,6 +798,7 @@ def get_config(self, section: str) -> dict[str, Any]:
'RUF027',
'RUF028',
'RUF029',
'RUF101',
'S401',
'S402',
'S403',
Expand Down
2 changes: 1 addition & 1 deletion src/hatch/env/internal/static_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit dcec650

Please sign in to comment.