mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
Replace isort with ruff
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user