Skip to content

Commit

Permalink
Fix file name and edit error output
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 16, 2024
1 parent 6cc1b79 commit 6f53411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scribe_data/check/check_project_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def check_data_type_folders(path, language, subdir, errors):

for file in os.listdir(item_path):
if file not in valid_files and file != "__init__.py":
error_subdir = f"{subdir}/" or ""
errors.append(
f"Unexpected file in {language}/{subdir or ''}/{item}: {file}"
f"Unexpected file in {language}/{error_subdir}{item}: {file}"
)


Expand Down

0 comments on commit 6f53411

Please sign in to comment.