-
Notifications
You must be signed in to change notification settings - Fork 458
Enable following symbolic links when traversing a directory #1212
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
base: master
Are you sure you want to change the base?
Conversation
…n traversing a directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for following symbolic links when traversing directories during message extraction, addressing a missing feature. Key changes include:
- A new CLI test to verify the --follow-links option.
- Documentation updates for the CLI to inform users about the follow-links flag.
- Code modifications in both the frontend and extraction modules to enable following symbolic links.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/messages/test_frontend.py | Adds a test case for the follow-links CLI option. |
docs/cmdline.rst | Updates CLI documentation to include the follow-links flag. |
babel/messages/frontend.py | Adds follow-links as a command-line option and initializes its value. |
babel/messages/extract.py | Passes the follow-links parameter to os.walk in extract_from_dir. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1212 +/- ##
==========================================
+ Coverage 91.71% 91.98% +0.27%
==========================================
Files 27 27
Lines 4685 4694 +9
==========================================
+ Hits 4297 4318 +21
+ Misses 388 376 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR adds an option to
extract_from_dir
andfrontend
to follow symbolic links when traversing a directory. This was a missing feature. The rationale for it is in the issue description and comments: #1211 (comment)Fixes #1211