Skip to content

Commit 05b5de5

Browse files
committed
Linted per pre-commit
1 parent 0087d98 commit 05b5de5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tools/ci_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def check_build_status(
147147
return None
148148

149149

150+
# pylint: disable=too-many-arguments
150151
def rerun_workflow(
151152
lib_repo: Repository,
152153
user: Optional[str] = None,

tools/iterate_libraries.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import glob
1919
import pathlib
2020
from collections.abc import Sequence, Iterable
21-
from typing import TypeVar, Any, Callable, Union, List
21+
from typing import TypeVar, Any, Union, List
2222
from typing_extensions import TypeAlias
2323
import parse
2424
from github import Github
@@ -114,13 +114,16 @@ def iter_local_bundle_with_func(
114114
# Enter each library in the bundle
115115
for library_path in libraries_path_list:
116116

117-
iterated.add(os.path.split(library_path).lower())
117+
iterated.add(os.path.split(library_path)[1].lower())
118118
func_results = perform_func(library_path, func_workflow)
119119

120120
results.append((library_path, func_results))
121121

122122
if local_folder:
123-
additional = set(glob.glob(os.path.join(local_folder, "*")))
123+
additional = {
124+
os.path.split(pathname)[1].lower()
125+
for pathname in glob.glob(os.path.join(local_folder, "*"))
126+
}
124127
diff = additional.difference(iterated)
125128
for unused in diff:
126129
unused_func_results = perform_func(unused, func_workflow)

0 commit comments

Comments
 (0)