René's URL Explorer Experiment


Title: feat(python): 支持按 shebang 识别无后缀脚本 by Mucheen · Pull Request #6 · Lithe-IDEA/lithe-plugin-python · GitHub

Open Graph Title: feat(python): 支持按 shebang 识别无后缀脚本 by Mucheen · Pull Request #6 · Lithe-IDEA/lithe-plugin-python

X Title: feat(python): 支持按 shebang 识别无后缀脚本 by Mucheen · Pull Request #6 · Lithe-IDEA/lithe-plugin-python

Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2122 PR 类型 / Type feat 改动说明 / What changes 扩展名为空时,可用常见的 Python 或 PyPy 解释器路径及 env / env -S shebang 选择 Python,包含 env -S 后接绝对解释器路径的写法。插件继续声明 .py、.pyi、.pyw。 真包宿主测试打开无后缀脚本、检查 Python 高亮、通过编辑器输入改动并等待 Pyrefly 为同一文档报告诊断。 包内 grammars/python.first-line.json 提供可选首行元数据。普通 .py 与无后缀脚本共用宿主内置的语法和分类规则。插件继续声明 languages: 0。 不在本 PR 范围内 / Out of scope 现有 M3 主线宿主复验由 Python #5 交付。此 PR 叠在 #5 上便于单独审阅,等 #5 合入后切回 main。正式发布与 Windows 交互验收由维护者安排。 范围检查 / Scope checks 通用匹配遵循 Core #127。插件声明解释器名称,所有平台共用同一匹配规则。 插件仓库维护真实包测试。文件和包哈希回归仍由插件命令套件执行。 验证 / Verification 同一个 macOS ARM64 ZIP 在 0.8.9 通过普通 Python 逐 token 高亮比对,在 桌面 Draft #2217 的 3dd5a79e9 通过 5 项宿主 E2E。覆盖项目生成、解释器与调试、普通文件高亮、无后缀 env -S 绝对路径脚本的编辑诊断和包只读。新增高亮和 shebang 用例分别耗时 1.87 秒与 8.19 秒。 归档测试 3/3、插件命令 12/12 和 actionlint 通过。插件 CI 复用打包作业的同一 ZIP,在 0.8.9 和固定的候选桌面运行高亮及首行回归。本提交 CI Windows 桌面原生交互待实机验收。Core 和桌面合入后将宿主验证固定到正式提交。

Open Graph Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2122 PR 类型 / Type feat 改动说明 / What changes 扩展名为空时,可用常见的 Python 或 PyPy 解释器路径及 env / env -S shebang 选择 Python,包含 env -S 后接绝对解释器路径的写法。插件继续声明 .py、.pyi...

X Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2122 PR 类型 / Type feat 改动说明 / What changes 扩展名为空时,可用常见的 Python 或 PyPy 解释器路径及 env / env -S shebang 选择 Python,包含 env -S 后接绝对解释器路径的写法。插件继续声明 .py、.pyi...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:89b084c9-a3ca-6bc2-695f-a5f0d61e9282
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC77A:3947BC:4303FD:57DB0C:6B0767CB
html-safe-nonce6a09d48d800192dce36c54b903e163af042e61c11dbdc28f26af9e26a9753200
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzdBOjM5NDdCQzo0MzAzRkQ6NTdEQjBDOjZCMDc2N0NCIiwidmlzaXRvcl9pZCI6Ijg3ODI5MTY4NTM1OTQ0NTk2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8cef026ebba2184cd0ac4cbd9646e53d97b9aa4d9174101056ed3d842ad10ac2
hovercard-subject-tagpull_request:5405252026
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/Lithe-IDEA/lithe-plugin-python/pull/6/files
twitter:imagehttps://avatars.githubusercontent.com/u/145200703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/145200703?s=400&v=4
og:image:alt关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2122 PR 类型 / Type feat 改动说明 / What changes 扩展名为空时,可用常见的 Python 或 PyPy 解释器路径及 env / env -S shebang 选择 Python,包含 env -S 后接绝对解释器路径的写法。插件继续声明 .py、.pyi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59b8f5d72ef6b72449d99daafd74abe56273d30f4491cc421870d3c1bcc07535
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-python git https://github.com/Lithe-IDEA/lithe-plugin-python.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1462371131
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1462371131
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-python
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
release2d876643548d19018f1accd48f914fec9bce9184
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-python%2Fpull%2F6%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-python%2Fpull%2F6%2Ffiles
Sign uphttps://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=Lithe-IDEA%2Flithe-plugin-python
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-pythonhttps://github.com/Lithe-IDEA/lithe-plugin-python
Codehttps://github.com/Lithe-IDEA/lithe-plugin-python
Issues1 (1)https://github.com/Lithe-IDEA/lithe-plugin-python/issues
Pull requestshttps://github.com/Lithe-IDEA/lithe-plugin-python/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-python/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-python/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-python/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2Flithe-plugin-python%2Fissues%2Fnew%2Fchoose
Mucheenhttps://github.com/Mucheen
codex/2122-python-mainline-hosthttps://github.com/Lithe-IDEA/lithe-plugin-python/tree/codex/2122-python-mainline-host
codex/2122-python-shebanghttps://github.com/Lithe-IDEA/lithe-plugin-python/tree/codex/2122-python-shebang
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6
Commits 4 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/commits
Checks 12 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
feat(python): 支持按 shebang 识别无后缀脚本 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#top
Show all changes 4 commits https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
a9b5b3f feat(python): recognize and analyze extensionless scripts Mucheen Nov 19, 2026 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/commits/a9b5b3f3908505eb43cd41ddac29003ac3b9e5f8
b90696e fix(python): place shebang matching in packaged grammar Mucheen Nov 20, 2026 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/commits/b90696eacd93ca141166fd7c4e00654342feb040
7521dfa fix(test): compare packaged grammar across checkout line endings Mucheen Nov 20, 2026 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/commits/7521dfa7e1e34991fc764f20c7c2f04e9d1faf40
fbc4e27 fix(python): 保留内置高亮并覆盖 shebang 兼容性 Mucheen Nov 20, 2026 https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/commits/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
ci.yml https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
README.md https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
feature-matrix.md https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
v1.0.0.md https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-c548a2e1552db6564ce36f35e8d5b3674970c9df9414a84dbd12ccc8fe74fda7
python_shebang_e2e_test.go https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e4f341da904ea11c00f516068f1a2debe90aecb82a09b5e8ca90a3c066ea2cff
lithe-host.json https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
python.first-line.json https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-d9a76d6c9783ba981c6b39c08644166685642ed015a07ae6e67ca610aa49b17c
archives.test.mjs https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e74195a1bce8f08bc03914ab00eb51791d6a0279226b37cca0c7ed0685cee788
test.mjs https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-2f82d6fd8f8923ef132bfc97ea3e6ae56d509a6c50a15612470f2795559b7f6d
.github/workflows/ci.ymlhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
README.mdhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/feature-matrix.mdhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/docs/feature-matrix.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
docs/releases/v1.0.0.mdhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-c548a2e1552db6564ce36f35e8d5b3674970c9df9414a84dbd12ccc8fe74fda7
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/docs/releases/v1.0.0.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
e2e/host/desktop/internal/workbench/python_shebang_e2e_test.gohttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e4f341da904ea11c00f516068f1a2debe90aecb82a09b5e8ca90a3c066ea2cff
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/e2e/host/desktop/internal/workbench/python_shebang_e2e_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
e2e/host/lithe-host.jsonhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/e2e/host/lithe-host.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
io.github.lithe-idea.python-support/grammars/python.first-line.jsonhttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-d9a76d6c9783ba981c6b39c08644166685642ed015a07ae6e67ca610aa49b17c
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/io.github.lithe-idea.python-support/grammars/python.first-line.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
scripts/package/archives.test.mjshttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e74195a1bce8f08bc03914ab00eb51791d6a0279226b37cca0c7ed0685cee788
View file https://github.com/Lithe-IDEA/lithe-plugin-python/blob/fbc4e270b914b182e9da2e9daf33fffb6e5b73a1/scripts/package/archives.test.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e74195a1bce8f08bc03914ab00eb51791d6a0279226b37cca0c7ed0685cee788
https://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files#diff-e74195a1bce8f08bc03914ab00eb51791d6a0279226b37cca0c7ed0685cee788
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-python/pull/6/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.