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
Domain: github.com
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:6e869f78-8880-a320-8161-dc4e8b488142 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | AA62:29C181:882AA41:B90E689:69963A82 |
| html-safe-nonce | 83c68127e1a2ccc901631e2742105917f7c232ab24988c72fb67c8ff7978cd31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTYyOjI5QzE4MTo4ODJBQTQxOkI5MEU2ODk6Njk5NjNBODIiLCJ2aXNpdG9yX2lkIjoiMTA0MDM1MjY4OTg4MjgwNjkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10c3b1fdb9ef7834714736658ba2fd96ebe7de7742d1f7d4f0209c7cf96344af |
| hovercard-subject-tag | repository:523043277 |
| github-keyboard-shortcuts | repository,commits,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/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1 |
| twitter:image | https://opengraph.githubassets.com/56d9690c30cbad12dd93d561a99fff30355a6cd8de6b7481af858f54ece60576/astral-sh/ruff/commit/764aa0e6a1b16284c1c939332c19d742dae8aee1 |
| twitter:card | summary_large_image |
| og:image | https://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:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1740669795 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb5fc598983958d677e5179b50e71c2bfa2a8ac1568110d429775cd645bbe799 |
| turbo-cache-control | no-cache |
| go-import | github.com/astral-sh/ruff git https://github.com/astral-sh/ruff.git |
| octolytics-dimension-user_id | 115962839 |
| octolytics-dimension-user_login | astral-sh |
| octolytics-dimension-repository_id | 523043277 |
| octolytics-dimension-repository_nwo | astral-sh/ruff |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 523043277 |
| octolytics-dimension-repository_network_root_nwo | astral-sh/ruff |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ddb60c6732f32ef004e33aed240bef867c5f545f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width