Title: Add `--include-dirs` flag to scan normally-excluded directories by lelia · Pull Request #235 · SocketDev/socket-python-cli · GitHub
Open Graph Title: Add `--include-dirs` flag to scan normally-excluded directories by lelia · Pull Request #235 · SocketDev/socket-python-cli
X Title: Add `--include-dirs` flag to scan normally-excluded directories by lelia · Pull Request #235 · SocketDev/socket-python-cli
Description: Summary The CLI excludes a fixed set of directory names from manifest discovery (build, dist, node_modules, .venv, __pycache__, etc.). These are sane defaults, but some projects keep manifest files under those names (e.g. build/requirements.txt), so there was no way to scan them. This adds a generic way to opt specific directories back in. Changes New --include-dirs flag (comma-separated directory names) — re-includes any of the default-excluded directory names in manifest discovery, e.g. --include-dirs build,dist. Names are matched against any path segment, mirroring how the default exclude list is applied. --include-module-folders now works as documented — it re-includes the JS/TS module folders (node_modules, bower_components, jspm_packages) as a group. It was previously accepted but had no effect. The re-inclusion builds a new exclude set rather than mutating the shared module-level default, and is applied right after Core is constructed so it covers every manifest scan (including the sub-path pre-check). Tests New tests/unit/test_include_dirs.py: config parsing (CLI + config file), find_files excludes build by default vs. includes it when un-excluded, and a guard that the shared default set is never mutated. Existing config/CLI suites pass. Fixes CE-228.
Open Graph Description: Summary The CLI excludes a fixed set of directory names from manifest discovery (build, dist, node_modules, .venv, __pycache__, etc.). These are sane defaults, but some projects keep manifest files...
X Description: Summary The CLI excludes a fixed set of directory names from manifest discovery (build, dist, node_modules, .venv, __pycache__, etc.). These are sane defaults, but some projects keep manifest files...
Opengraph URL: https://github.com/SocketDev/socket-python-cli/pull/235
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:026f4d07-381f-2d21-ce5b-23508f5f7f71 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E31C:35A293:61F816:8A4999:6A4E713C |
| html-safe-nonce | e086495c5945eecddc495a0b61f527caab3219ce15b3df258fda62a56b4138e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzFDOjM1QTI5Mzo2MUY4MTY6OEE0OTk5OjZBNEU3MTNDIiwidmlzaXRvcl9pZCI6IjM2NjAzNTEzMTM5MDI3Mjc0ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 23f7e05aa2460d577a1e19963f40eb6b001dbd9b1775cac75f440a730004632f |
| hovercard-subject-tag | pull_request:3857593121 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/SocketDev/socket-python-cli/pull/235/files |
| twitter:image | https://avatars.githubusercontent.com/u/2418071?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2418071?s=400&v=4 |
| og:image:alt | Summary The CLI excludes a fixed set of directory names from manifest discovery (build, dist, node_modules, .venv, __pycache__, etc.). These are sane defaults, but some projects keep manifest files... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/SocketDev/socket-python-cli git https://github.com/SocketDev/socket-python-cli.git |
| octolytics-dimension-user_id | 69326764 |
| octolytics-dimension-user_login | SocketDev |
| octolytics-dimension-repository_id | 802230750 |
| octolytics-dimension-repository_nwo | SocketDev/socket-python-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 802230750 |
| octolytics-dimension-repository_network_root_nwo | SocketDev/socket-python-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width