René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:026f4d07-381f-2d21-ce5b-23508f5f7f71
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE31C:35A293:61F816:8A4999:6A4E713C
html-safe-noncee086495c5945eecddc495a0b61f527caab3219ce15b3df258fda62a56b4138e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzFDOjM1QTI5Mzo2MUY4MTY6OEE0OTk5OjZBNEU3MTNDIiwidmlzaXRvcl9pZCI6IjM2NjAzNTEzMTM5MDI3Mjc0ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac23f7e05aa2460d577a1e19963f40eb6b001dbd9b1775cac75f440a730004632f
hovercard-subject-tagpull_request:3857593121
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SocketDev/socket-python-cli/pull/235/files
twitter:imagehttps://avatars.githubusercontent.com/u/2418071?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2418071?s=400&v=4
og:image:altSummary 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/SocketDev/socket-python-cli git https://github.com/SocketDev/socket-python-cli.git
octolytics-dimension-user_id69326764
octolytics-dimension-user_loginSocketDev
octolytics-dimension-repository_id802230750
octolytics-dimension-repository_nwoSocketDev/socket-python-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id802230750
octolytics-dimension-repository_network_root_nwoSocketDev/socket-python-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/SocketDev/socket-python-cli/pull/235/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-python-cli%2Fpull%2F235%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-python-cli%2Fpull%2F235%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=SocketDev%2Fsocket-python-cli
Reloadhttps://github.com/SocketDev/socket-python-cli/pull/235/files
Reloadhttps://github.com/SocketDev/socket-python-cli/pull/235/files
Reloadhttps://github.com/SocketDev/socket-python-cli/pull/235/files
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
SocketDev https://github.com/SocketDev
socket-python-clihttps://github.com/SocketDev/socket-python-cli
Notifications https://github.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Fork 11 https://github.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Star 9 https://github.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Code https://github.com/SocketDev/socket-python-cli
Pull requests 5 https://github.com/SocketDev/socket-python-cli/pulls
Actions https://github.com/SocketDev/socket-python-cli/actions
Models https://github.com/SocketDev/socket-python-cli/models
Security and quality 0 https://github.com/SocketDev/socket-python-cli/security
Insights https://github.com/SocketDev/socket-python-cli/pulse
Code https://github.com/SocketDev/socket-python-cli
Pull requests https://github.com/SocketDev/socket-python-cli/pulls
Actions https://github.com/SocketDev/socket-python-cli/actions
Models https://github.com/SocketDev/socket-python-cli/models
Security and quality https://github.com/SocketDev/socket-python-cli/security
Insights https://github.com/SocketDev/socket-python-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FSocketDev%2Fsocket-python-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FSocketDev%2Fsocket-python-cli%2Fissues%2Fnew%2Fchoose
leliahttps://github.com/lelia
mainhttps://github.com/SocketDev/socket-python-cli/tree/main
lelia/ce-228-add-flag-to-allow-build-folder-to-be-scanned-with-python-clihttps://github.com/SocketDev/socket-python-cli/tree/lelia/ce-228-add-flag-to-allow-build-folder-to-be-scanned-with-python-cli
Conversation 2 https://github.com/SocketDev/socket-python-cli/pull/235
Commits 1 https://github.com/SocketDev/socket-python-cli/pull/235/commits
Checks 26 https://github.com/SocketDev/socket-python-cli/pull/235/checks
Files changed https://github.com/SocketDev/socket-python-cli/pull/235/files
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
Add --include-dirs flag to scan normally-excluded directories https://github.com/SocketDev/socket-python-cli/pull/235/files#top
Show all changes 1 commit https://github.com/SocketDev/socket-python-cli/pull/235/files
34bddac Add --include-dirs flag to scan normally-excluded directories lelia Jun 12, 2026 https://github.com/SocketDev/socket-python-cli/pull/235/commits/34bddacea1758424110dae0b2676a85e72ad037e
Clear filters https://github.com/SocketDev/socket-python-cli/pull/235/files
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
CHANGELOG.md https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
cli-reference.md https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
pyproject.toml https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
__init__.py https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-9ae7a3b3f6a847c0c7bbe145ba187b0f9a0cfd2e1316ab84d135c13830934814
config.py https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
socket_config.py https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-cc9ea0962208b18be79d40c19da78d1658a4cc2dc40e3c34962188ed929d1c64
socketcli.py https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
test_include_dirs.py https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-900b77b4d7f2b74658f6f98377c20da3a5b02ff4468fc36af6ad4bde1042026e
uv.lock https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
CHANGELOG.mdhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
docs/cli-reference.mdhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/docs/cli-reference.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-d5d8360d1a358f2af4bbafbf521fa1a56bdd0b1bdf9bb397244d3bd650e7dd01
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
pyproject.tomlhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
socketsecurity/__init__.pyhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-9ae7a3b3f6a847c0c7bbe145ba187b0f9a0cfd2e1316ab84d135c13830934814
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/socketsecurity/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
socketsecurity/config.pyhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/socketsecurity/config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-aebad19fe6b5fc1a1abf8ccc19fdb19ee60ecb32f904a44d206d20f4abf23536
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
socketsecurity/core/socket_config.pyhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-cc9ea0962208b18be79d40c19da78d1658a4cc2dc40e3c34962188ed929d1c64
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/socketsecurity/core/socket_config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-cc9ea0962208b18be79d40c19da78d1658a4cc2dc40e3c34962188ed929d1c64
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-cc9ea0962208b18be79d40c19da78d1658a4cc2dc40e3c34962188ed929d1c64
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
socketsecurity/socketcli.pyhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/socketsecurity/socketcli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
https://github.com/SocketDev/socket-python-cli/pull/235/files#diff-42c07200ab90333cb355430e90c085abda17d6bb5705e57e1a141a6f404b2acc
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
tests/unit/test_include_dirs.pyhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-900b77b4d7f2b74658f6f98377c20da3a5b02ff4468fc36af6ad4bde1042026e
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/tests/unit/test_include_dirs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-python-cli/pull/235/{{ revealButtonHref }}
https://github.com/SocketDev/socket-python-cli/blob/main/.github/CODEOWNERS#L1
uv.lockhttps://github.com/SocketDev/socket-python-cli/pull/235/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
View file https://github.com/SocketDev/socket-python-cli/blob/34bddacea1758424110dae0b2676a85e72ad037e/uv.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
Please reload this pagehttps://github.com/SocketDev/socket-python-cli/pull/235/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.