Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make project file names configurable #499

Merged
merged 19 commits into from
Feb 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Recurse submodules to find project files
SamTheisens committed Nov 16, 2024
commit ded159c28416d4f9c8949e396ad9d53b3fe25c08
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -153,4 +153,7 @@ node_modules/
mpyl_config.yml

# Gradle template
.gradle
.gradle

# Jupyter playground
*.ipynb
4 changes: 3 additions & 1 deletion src/mpyl/utilities/repo/__init__.py
Original file line number Diff line number Diff line change
@@ -293,7 +293,9 @@ def find_projects(self, folder_pattern: str = "") -> list[str]:
overrides_pattern = f"{folder}/{Project.project_overrides_yaml_file_pattern()}"

def files(pattern: str):
return set(self._repo.git.ls_files(pattern).splitlines())
return set(
self._repo.git.ls_files(pattern, recurse_submodules=True).splitlines()
)

def deleted(pattern: str):
return set(self._repo.git.ls_files("-d", pattern).splitlines())