Skip to content

feat: recursively look for lock files#332

Merged
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:recursive
Sep 16, 2025
Merged

feat: recursively look for lock files#332
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:recursive

Conversation

@sdn4z
Copy link
Copy Markdown
Collaborator

@sdn4z sdn4z commented Sep 16, 2025

With this PR we extend the functionality of parsing multiple files to also be able to auto locate them recursively, scanning subdirectories. Note that it will exclude .git directory to speed up the process.

refs #325

Comment thread tests/main/test_main.py Outdated
req_file.write_text("reqests\n")

m_dep_selector.return_value = DependencySelector(root_path=str(tmp_path))
# Should find both files
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we actually finding 2 files? The test is not clear about that. Or are we just finding requirements.txt inside tmp_path/subdir?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy pasta from another test, fixed

@sdn4z sdn4z merged commit 35133fd into elementsinteractive:main Sep 16, 2025
12 checks passed
@sdn4z sdn4z deleted the recursive branch September 16, 2025 11:19
sdn4z added a commit to sdn4z/twyn that referenced this pull request Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants