Skip to content

Commit

Permalink
Include ruff for pre commits
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Nov 3, 2023
1 parent 6c1206d commit 23f6da2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ repos:
name: AutoFlake
description: "Format with AutoFlake"
stages: [commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
name: Ruff
args: ["--fix", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/dev_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import discord
from cogs import EXTENSIONS
from discord import app_commands
from discord.ext import commands
from discord.ext.commands import Context, Greedy

Expand Down
2 changes: 0 additions & 2 deletions bot/libs/utils/tree.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import discord
from discord import app_commands
from discord.utils import utcnow
from libs.utils import ErrorEmbed

from .errors import produce_error_embed

Expand Down

0 comments on commit 23f6da2

Please sign in to comment.