Replace isort with ruff

This commit is contained in:
Kovid Goyal
2023-01-09 16:47:42 +05:30
parent f15d27bb62
commit 7fe5d7b58f
157 changed files with 876 additions and 732 deletions

View File

@@ -2,16 +2,14 @@
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
import os
from . import BaseTest
class TestHints(BaseTest):
def test_url_hints(self):
from kittens.hints.main import (
Mark, convert_text, functions_for, linenum_marks,
linenum_process_result, mark, parse_hints_args, process_escape_codes
)
from kittens.hints.main import Mark, convert_text, functions_for, linenum_marks, linenum_process_result, mark, parse_hints_args, process_escape_codes
args = parse_hints_args([])[0]
pattern, post_processors = functions_for(args)
@@ -54,9 +52,7 @@ class TestHints(BaseTest):
m('~/file.c:23:32', os.path.expanduser('~/file.c'), 23)
def test_ip_hints(self):
from kittens.hints.main import (
convert_text, functions_for, mark, parse_hints_args
)
from kittens.hints.main import convert_text, functions_for, mark, parse_hints_args
args = parse_hints_args(['--type', 'ip'])[0]
pattern, post_processors = functions_for(args)