Skip to content

Commit 52abcff

Browse files
committed
pre-commit: Fix RuntimeError in isort hook
The pre-commit shows an error in isort hook as follows. RuntimeError: The Poetry configuration is invalid This can be fixed by upgrading isort rev to 5.11.5 so this patch changes the version to fix it. In addition, apply changes from isort 5.11.5 to make pre-commit happy. Link: PyCQA/isort#2083 (comment) Signed-off-by: Honggyu Kim <[email protected]>
1 parent a5fc2cd commit 52abcff

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/PyCQA/isort
9-
rev: 5.10.1
9+
rev: 5.11.5
1010
hooks:
1111
- id: isort
1212
- repo: https://github.com/pre-commit/mirrors-clang-format

gdb/uftrace/mcount.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
#
1313

1414
import gdb
15-
from uftrace import utils
16-
from uftrace import rbtree
17-
from uftrace import trigger
18-
15+
from uftrace import rbtree, trigger, utils
1916

2017
filter_type = utils.CachedType("struct uftrace_filter")
2118

gdb/uftrace/plthook.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
# This work is licensed under the terms of the GNU GPL version 2.
1515
#
1616

17-
import gdb
1817
import os
19-
from uftrace import utils, lists
2018

19+
import gdb
20+
from uftrace import lists, utils
2121

2222
plthook_data_type = utils.CachedType("struct plthook_data")
2323

gdb/uftrace/trigger.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#
1313

1414
import gdb
15-
from uftrace import utils
16-
from uftrace import lists
15+
from uftrace import lists, utils
1716

1817
filter_type = utils.CachedType("struct uftrace_filter")
1918
trigger_type = utils.CachedType("struct uftrace_trigger")

0 commit comments

Comments
 (0)