From f8fc532ea36ee680d6c2528f4c7bdaf23bfb2c83 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Sun, 11 Aug 2024 23:59:56 +0600 Subject: [PATCH] update --- bot/__main__.py | 3 ++- ruff.toml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bot/__main__.py b/bot/__main__.py index bed9557bc..d6c3fbb6c 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,3 +1,4 @@ +# ruff: noqa: F401 import contextlib from asyncio import create_subprocess_exec, gather from html import escape @@ -49,7 +50,7 @@ sendFile, sendMessage, ) -from .modules import ( # noqa: F401 +from .modules import ( authorize, bot_settings, broadcast, diff --git a/ruff.toml b/ruff.toml index a2776d0a2..0da7dc513 100644 --- a/ruff.toml +++ b/ruff.toml @@ -3,6 +3,9 @@ unsafe-fixes = true line-length = 85 target-version = "py310" +[lint.isort] +length-sort = true + [lint] select = [ "FURB", # refurb @@ -29,5 +32,9 @@ select = [ ignore = [ "PLR2004", "PLR0912", + "PLR0915", + "PLR0911", + "PLR0913", + "N806", "E501", ] \ No newline at end of file