Skip to content

Commit

Permalink
Upgrade ruff to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Nov 23, 2024
1 parent 778065a commit 9228616
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.8.0
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion lib/lsp-devtools/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ UV_PRERELEASE="allow"

[envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
dependencies = ["ruff==0.5.2"]
dependencies = ["ruff==0.8.0"]
6 changes: 3 additions & 3 deletions lib/lsp-devtools/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ ignore = [
"SIM115", # Use key in dict
"SIM118", # Use key in dict
"SLF001", # private member access
"TCH001", # move import to type checking block
"TCH002", # move import to type checking block
"TCH003", # move import to type checking block
"TC001", # move import to type checking block
"TC002", # move import to type checking block
"TC003", # move import to type checking block
"TID252", # Absolute vs relative imports
"TRY300", # Move statement to else block
]
Expand Down
17 changes: 7 additions & 10 deletions lib/lsp-devtools/ruff_defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ select = [
"E742",
"E743",
"E902",
"E999",
"EM101",
"EM102",
"EM103",
Expand Down Expand Up @@ -244,7 +243,6 @@ select = [
"PLR0133",
"PLR0206",
"PLR0402",
"PLR1701",
"PLR1711",
"PLR1714",
"PLR1722",
Expand Down Expand Up @@ -452,12 +450,12 @@ select = [
"T100",
"T201",
"T203",
"TCH001",
"TCH002",
"TCH003",
"TCH004",
"TCH005",
"TCH010",
"TC001",
"TC002",
"TC003",
"TC004",
"TC005",
"TC010",
"TD004",
"TD005",
"TD006",
Expand All @@ -469,9 +467,9 @@ select = [
"TRY003",
"TRY004",
"TRY201",
"TRY203",
"TRY300",
"TRY301",
"TRY302",
"TRY400",
"TRY401",
"UP001",
Expand All @@ -498,7 +496,6 @@ select = [
"UP024",
"UP025",
"UP026",
"UP027",
"UP028",
"UP029",
"UP030",
Expand Down
2 changes: 1 addition & 1 deletion lib/pytest-lsp/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ matrix.pytest.dependencies = [

[envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
dependencies = ["ruff==0.5.2"]
dependencies = ["ruff==0.8.0"]
6 changes: 3 additions & 3 deletions lib/pytest-lsp/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ ignore = [
"SIM115", # Use key in dict
"SIM118", # Use key in dict
"SLF001", # private member access
"TCH001", # move import to type checking block
"TCH002", # move import to type checking block
"TCH003", # move import to type checking block
"TC001", # move import to type checking block
"TC002", # move import to type checking block
"TC003", # move import to type checking block
"TID252", # Absolute vs relative imports
"TRY300", # Move statement to else block
]
Expand Down
15 changes: 7 additions & 8 deletions lib/pytest-lsp/ruff_defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,12 @@ select = [
"T100",
"T201",
"T203",
"TCH001",
"TCH002",
"TCH003",
"TCH004",
"TCH005",
"TCH010",
"TC001",
"TC002",
"TC003",
"TC004",
"TC005",
"TC010",
"TD004",
"TD005",
"TD006",
Expand All @@ -467,9 +467,9 @@ select = [
"TRY003",
"TRY004",
"TRY201",
"TRY203",
"TRY300",
"TRY301",
"TRY302",
"TRY400",
"TRY401",
"UP001",
Expand All @@ -496,7 +496,6 @@ select = [
"UP024",
"UP025",
"UP026",
"UP027",
"UP028",
"UP029",
"UP030",
Expand Down

0 comments on commit 9228616

Please sign in to comment.