fix: resolve CI/CD issues - Poetry setup, type annotations, MyPy errors
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import hashlib
|
import hashlib
|
||||||
@@ -47,7 +48,7 @@ def find_files_pattern(directory: Path, patterns: list) -> list:
|
|||||||
from fnmatch import fnmatch
|
from fnmatch import fnmatch
|
||||||
matches = []
|
matches = []
|
||||||
|
|
||||||
for root, dirs, files in directory.walk():
|
for root, dirs, files in os.walk(directory):
|
||||||
for file in files:
|
for file in files:
|
||||||
file_path = Path(root) / file
|
file_path = Path(root) / file
|
||||||
rel_path = str(file_path.relative_to(directory))
|
rel_path = str(file_path.relative_to(directory))
|
||||||
|
|||||||
Reference in New Issue
Block a user