Skip to content

Commit 55430c0

Browse files
committed
fix: upgrade and pin ruff version for ci
1 parent 48c1c1d commit 55430c0

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install ruff
26+
pip install ruff==0.9.3
2727
- name: Run Ruff
2828
run: ruff check --select I --no-fix .
2929
- name: Format

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.7.0
3+
rev: v0.9.3
44
hooks:
55
- id: ruff
6-
args: [--select I, --no-fix]
6+
args: [--select=I, --no-fix]
77
- id: ruff-format
88
args: [--check]

cogs/__eval__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _cleanup_code(content):
7171
body = _cleanup_code(modal.code.value)
7272
stdout = io.StringIO()
7373

74-
to_compile = f'async def func():\n{textwrap.indent(body, " ")}'
74+
to_compile = f"async def func():\n{textwrap.indent(body, ' ')}"
7575

7676
def _paginate(text: str):
7777
app_index = 0

cogs/network.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ async def _info(self, ctx: discord.Interaction):
7171
embed.set_field_at(
7272
3,
7373
name="Last Block Timestamp",
74-
value=f"<t:{data['timestamp']}:F> "
75-
f"(<t:{data['timestamp']}:R>)",
74+
value=f"<t:{data['timestamp']}:F> (<t:{data['timestamp']}:R>)",
7675
)
7776

7877
await ctx.edit_original_response(embed=embed)
@@ -241,8 +240,7 @@ async def _lastblock(self, ctx: discord.Interaction):
241240
)
242241
embed.add_field(
243242
name="Timestamp",
244-
value=f"<t:{data['timestamp']}:F> "
245-
f"(<t:{data['timestamp']}:R>)",
243+
value=f"<t:{data['timestamp']}:F> (<t:{data['timestamp']}:R>)",
246244
)
247245
embed.add_field(
248246
name="Hash",
@@ -289,7 +287,7 @@ async def _inflation(self, ctx: discord.Interaction):
289287

290288
embed.add_field(
291289
name="Current Annual Inflation Percentage",
292-
value=f"{(new_xnv_per_year/coins) * 100:.3f}%",
290+
value=f"{(new_xnv_per_year / coins) * 100:.3f}%",
293291
inline=False,
294292
)
295293

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ speed = [
3232
[tool.uv]
3333
dev-dependencies = [
3434
"pre-commit>=3.5.0",
35-
"ruff>=0.7.0",
35+
"ruff==0.9.3",
3636
]
3737

3838
[tool.uv.sources]

0 commit comments

Comments
 (0)