Skip to content

Commit 23f6da2

Browse files
committed
Include ruff for pre commits
1 parent 6c1206d commit 23f6da2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ repos:
2828
name: AutoFlake
2929
description: "Format with AutoFlake"
3030
stages: [commit]
31+
32+
- repo: https://github.com/astral-sh/ruff-pre-commit
33+
rev: v0.1.3
34+
hooks:
35+
- id: ruff
36+
name: Ruff
37+
args: ["--fix", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
3138

3239
- repo: https://github.com/PyCQA/isort
3340
rev: 5.12.0

bot/cogs/dev_tools.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import discord
44
from cogs import EXTENSIONS
5-
from discord import app_commands
65
from discord.ext import commands
76
from discord.ext.commands import Context, Greedy
87

bot/libs/utils/tree.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import discord
22
from discord import app_commands
3-
from discord.utils import utcnow
4-
from libs.utils import ErrorEmbed
53

64
from .errors import produce_error_embed
75

0 commit comments

Comments
 (0)