Skip to content

Commit 4b56431

Browse files
committed
pre-comit fixes
1 parent fd62595 commit 4b56431

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

commit0/harness/lint.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535

3636

3737
def main(
38-
dataset_name: str, dataset_split: str, repo_or_repo_dir: str, files: Union[List[Path], None], base_dir: str
38+
dataset_name: str,
39+
dataset_split: str,
40+
repo_or_repo_dir: str,
41+
files: Union[List[Path], None],
42+
base_dir: str,
3943
) -> None:
4044
dataset: Iterator[RepoInstance] = load_dataset(dataset_name, split=dataset_split) # type: ignore
4145
example = None
@@ -65,7 +69,7 @@ def main(
6569
for root, dirs, fs in os.walk(repo):
6670
for file in fs:
6771
if file.endswith(".py"):
68-
files.append(os.path.join(root, file))
72+
files.append(Path(os.path.join(root, file)))
6973

7074
config_file = Path(".commit0.pre-commit-config.yaml")
7175
if not config_file.is_file():

0 commit comments

Comments
 (0)