-
Notifications
You must be signed in to change notification settings - Fork 1
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
sc-12505 add exclude-dirs option for directory walking command #10
Conversation
This pull request has been linked to Shortcut Story #12505: Add --exclude-dirs to directory walking command. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10 +/- ##
==========================================
+ Coverage 87.66% 87.77% +0.10%
==========================================
Files 11 11
Lines 681 687 +6
==========================================
+ Hits 597 603 +6
Misses 84 84 ☔ View full report in Codecov by Sentry. |
@@ -251,6 +256,13 @@ def walk_directories(config_dir, file_types, output_dir): | |||
if dir in dirs: | |||
dirs.remove(dir) | |||
|
|||
# skip over user-specified non-config directories | |||
for dir in exclude_dirs: |
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.
Does this still exclude your default list too?
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.
I left that loop above the new code. But you've given me a better idea of how to concatenate the two lists.
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.
Eh, nevermind. The logic for finding referenced directories is too different from the existing logic. It will end up getting refactored later.
No description provided.