René's URL Explorer Experiment


Title: Allow passing `ParseOptions` to inline tests (#16357) · astral-sh/ruff@764aa0e · GitHub

Open Graph Title: Allow passing `ParseOptions` to inline tests (#16357) · astral-sh/ruff@764aa0e

X Title: Allow passing `ParseOptions` to inline tests (#16357) · astral-sh/ruff@764aa0e

Description: An extremely fast Python linter and code formatter, written in Rust. - Allow passing `ParseOptions` to inline tests (#16357) · astral-sh/ruff@764aa0e

Open Graph Description: ## Summary This PR adds support for a pragma-style header for inline parser tests containing JSON-serialized `ParseOptions`. For example, ```python # parse_options: { "target-version": ...

X Description: ## Summary This PR adds support for a pragma-style header for inline parser tests containing JSON-serialized `ParseOptions`. For example, ```python # parse_options: { "target-version&...

Opengraph URL: /astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/commit/:name(/*path)
route-controllercommit
route-actionshow
fetch-noncev2:6e869f78-8880-a320-8161-dc4e8b488142
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idAA62:29C181:882AA41:B90E689:69963A82
html-safe-nonce83c68127e1a2ccc901631e2742105917f7c232ab24988c72fb67c8ff7978cd31
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTYyOjI5QzE4MTo4ODJBQTQxOkI5MEU2ODk6Njk5NjNBODIiLCJ2aXNpdG9yX2lkIjoiMTA0MDM1MjY4OTg4MjgwNjkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac10c3b1fdb9ef7834714736658ba2fd96ebe7de7742d1f7d4f0209c7cf96344af
hovercard-subject-tagrepository:523043277
github-keyboard-shortcutsrepository,commits,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///commit/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
twitter:imagehttps://opengraph.githubassets.com/56d9690c30cbad12dd93d561a99fff30355a6cd8de6b7481af858f54ece60576/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56d9690c30cbad12dd93d561a99fff30355a6cd8de6b7481af858f54ece60576/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
og:image:alt## Summary This PR adds support for a pragma-style header for inline parser tests containing JSON-serialized `ParseOptions`. For example, ```python # parse_options: { "target-version": ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:updated_time1740669795
hostnamegithub.com
expected-hostnamegithub.com
Nonebb5fc598983958d677e5179b50e71c2bfa2a8ac1568110d429775cd645bbe799
turbo-cache-controlno-cache
go-importgithub.com/astral-sh/ruff git https://github.com/astral-sh/ruff.git
octolytics-dimension-user_id115962839
octolytics-dimension-user_loginastral-sh
octolytics-dimension-repository_id523043277
octolytics-dimension-repository_nwoastral-sh/ruff
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id523043277
octolytics-dimension-repository_network_root_nwoastral-sh/ruff
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseddb60c6732f32ef004e33aed240bef867c5f545f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fastral-sh%2Fruff%2Fcommit%2F764aa0e6a1b16284c1c939332c19d742dae8aee1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fastral-sh%2Fruff%2Fcommit%2F764aa0e6a1b16284c1c939332c19d742dae8aee1
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%2Fcommit%2Fshow&source=header-repo&source_repo=astral-sh%2Fruff
Reloadhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
Reloadhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
Reloadhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1
astral-sh https://github.com/astral-sh
ruffhttps://github.com/astral-sh/ruff
Notifications https://github.com/login?return_to=%2Fastral-sh%2Fruff
Fork 1.8k https://github.com/login?return_to=%2Fastral-sh%2Fruff
Star 45.8k https://github.com/login?return_to=%2Fastral-sh%2Fruff
Code https://github.com/astral-sh/ruff
Issues 1.6k https://github.com/astral-sh/ruff/issues
Pull requests 260 https://github.com/astral-sh/ruff/pulls
Discussions https://github.com/astral-sh/ruff/discussions
Actions https://github.com/astral-sh/ruff/actions
Projects 0 https://github.com/astral-sh/ruff/projects
Security 0 https://github.com/astral-sh/ruff/security
Insights https://github.com/astral-sh/ruff/pulse
Code https://github.com/astral-sh/ruff
Issues https://github.com/astral-sh/ruff/issues
Pull requests https://github.com/astral-sh/ruff/pulls
Discussions https://github.com/astral-sh/ruff/discussions
Actions https://github.com/astral-sh/ruff/actions
Projects https://github.com/astral-sh/ruff/projects
Security https://github.com/astral-sh/ruff/security
Insights https://github.com/astral-sh/ruff/pulse
Browse fileshttps://github.com/astral-sh/ruff/tree/764aa0e6a1b16284c1c939332c19d742dae8aee1
https://github.com/astral-sh/ruff/tree/764aa0e6a1b16284c1c939332c19d742dae8aee1
ntBrehttps://github.com/astral-sh/ruff/commits?author=ntBre
AlexWaygoodhttps://github.com/astral-sh/ruff/commits?author=AlexWaygood
#16357https://github.com/astral-sh/ruff/pull/16357
568cf88https://github.com/astral-sh/ruff/commit/568cf88c6c5b5551a675ae2b13deedec0fe226cb
Cargo.lockhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.tomlhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-4a338ebc7282666401ffeb83b3fac84927ed443968f23af5458a42345862cfcc
match_before_py310.pyhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-5943b47793b1ea7410bdc4a0f62e9c58117e4f46d5e9f3a826e5194460f627a7
match_after_py310.pyhttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-e0904cb43283617041ce75fea9a541788f07596e21c0a9e80e2ae1b8f2ae1f76
statement.rshttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-1dea7f847c29f6c2cd1ed764fcf6e582f63765789c49fe2d900d7dea1266be47
fixtures.rshttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-f0378f2722603a5c8ce70eb1674642a1c1ff355d32e8f261506c167285ed6d49
invalid_syntax@match_before_py310.py.snaphttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-28fa830b70aa9ed58901a2dc21aa8a564736471bad2e02d84ad3e9dd024c882b
valid_syntax@match_after_py310.py.snaphttps://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-64195e06c403522840dd564819fbe8675b5283026ef3ed8acf135fe756628d0e
‎Cargo.lock‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
customizing how changed files appear on GitHub.https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
‎crates/ruff_python_parser/Cargo.toml‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-4a338ebc7282666401ffeb83b3fac84927ed443968f23af5458a42345862cfcc
‎crates/ruff_python_parser/resources/inline/err/match_before_py310.py‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-5943b47793b1ea7410bdc4a0f62e9c58117e4f46d5e9f3a826e5194460f627a7
‎crates/ruff_python_parser/resources/inline/ok/match_after_py310.py‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-e0904cb43283617041ce75fea9a541788f07596e21c0a9e80e2ae1b8f2ae1f76
‎crates/ruff_python_parser/src/parser/statement.rs‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-1dea7f847c29f6c2cd1ed764fcf6e582f63765789c49fe2d900d7dea1266be47
‎crates/ruff_python_parser/tests/fixtures.rs‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-f0378f2722603a5c8ce70eb1674642a1c1ff355d32e8f261506c167285ed6d49
‎crates/ruff_python_parser/tests/snapshots/invalid_syntax@match_before_py310.py.snap‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-28fa830b70aa9ed58901a2dc21aa8a564736471bad2e02d84ad3e9dd024c882b
‎crates/ruff_python_parser/tests/snapshots/valid_syntax@match_after_py310.py.snap‎https://github.com/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1#diff-64195e06c403522840dd564819fbe8675b5283026ef3ed8acf135fe756628d0e
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.