Skip to content

Commit 747950a

Browse files
committed
fix ruff
1 parent 3cdb459 commit 747950a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cycode/cli/files_collector/path_documents.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from collections import defaultdict
3-
from typing import Set, TYPE_CHECKING, Iterable, List, Tuple
3+
from typing import TYPE_CHECKING, Iterable, List, Set, Tuple
44

55
import pathspec
66

@@ -76,7 +76,12 @@ def _get_all_existing_files_in_directory(path: str, *, apply_ignore_patterns: bo
7676
path_to_ignore_patterns[root].extend(get_file_content(filepath).splitlines())
7777

7878
if apply_ignore_patterns and root in path_to_ignore_patterns:
79-
filtered_paths = _apply_ignore_patterns(path_to_ignore_patterns[root], {filepath,})
79+
filtered_paths = _apply_ignore_patterns(
80+
path_to_ignore_patterns[root],
81+
{
82+
filepath,
83+
},
84+
)
8085
if filtered_paths:
8186
files.update(filtered_paths)
8287
else:

0 commit comments

Comments
 (0)