Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tools): Switch to ruff for import sorting. #1168

Merged
merged 11 commits into from
Mar 29, 2024
3 changes: 1 addition & 2 deletions examples/basic_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
import os
from typing import Any, Dict, Optional

import youtube_dl # type: ignore

import disnake
import youtube_dl # type: ignore
from disnake.ext import commands

# Suppress noise about console usage from errors
Expand Down
4 changes: 2 additions & 2 deletions examples/interactions/injections.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from dataclasses import dataclass
from typing import Any, Literal, Optional

import disnake

# this file uses pytz in one of its examples but it is completely optional
import pytz

import disnake
elenakrittik marked this conversation as resolved.
Show resolved Hide resolved
from disnake.ext import commands

bot = commands.Bot(command_prefix=commands.when_mentioned)
Expand Down
6 changes: 6 additions & 0 deletions examples/ruff.toml
elenakrittik marked this conversation as resolved.
Show resolved Hide resolved
elenakrittik marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: MIT

extend = "../pyproject.toml"

[lint.isort]
known-third-party = ["disnake"]
Loading