Micha Reiser
029fe05a5f
Playground: Fix escaped quotes handling ( #5906 )
...
Co-authored-by: konsti <konstin@mailbox.org>
2023-07-20 09:25:27 +00:00
Micha Reiser
46a17d11f3
playground: Add AST/Tokens/Formatter panels ( #5859 )
2023-07-19 14:46:08 +00:00
Micha Reiser
9ed7ceeb0a
playground: Add left panel and use brand colors ( #5838 )
2023-07-19 16:33:32 +02:00
Micha Reiser
ef58287c16
playground: Merge `Editor` state variables ( #5831 )
...
<!--
Thank you for contributing to Ruff! To help us out with reviewing, please consider the following:
- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
## Summary
This PR removes state variables that can be derived, merges related variables into a single state, and generally avoids `null` states.
## Test Plan
I clicked through the playground locally
<!-- How was it tested? -->
2023-07-18 08:08:24 +02:00
Micha Reiser
9ddf40455d
Upgrade playground dependencies ( #5830 )
...
<!--
Thank you for contributing to Ruff! To help us out with reviewing, please consider the following:
- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
## Summary
This PR upgrades the playground's runtime and dev dependencies
<!-- What's the purpose of the change? What does it do, and why? -->
## Test Plan
I tested the playground locally
<!-- How was it tested? -->
2023-07-18 08:00:54 +02:00
Charlie Marsh
12489d3305
Minor tweaks to playground color scheme ( #5754 )
...
## Summary
I kind of hate the light mode theme, but they now use colors from our
actual palette:
<img width="1792" alt="Screen Shot 2023-07-13 at 10 15 14 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/f1da0153-d6ed-4b65-9419-b824f2cad614 ">
<img width="1792" alt="Screen Shot 2023-07-13 at 10 15 12 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/d9452e10-796b-4b7f-bf3f-7af6e0b14fc0 ">
<img width="1792" alt="Screen Shot 2023-07-13 at 10 15 10 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/f75e7c1c-3b5a-4a78-8bb8-d8b4d40a337d ">
<img width="1792" alt="Screen Shot 2023-07-13 at 10 15 07 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/52c23108-b9c2-4a1f-adf0-e11098dbdc5d ">
2023-07-13 22:37:18 -04:00
Charlie Marsh
73228e914c
Use Ruff favicon for playground ( #5752 )
2023-07-14 01:11:44 +00:00
Charlie Marsh
e7b059cc5c
Fix nested lists in CONTRIBUTING.md ( #5721 )
...
## Summary
We have a lot of two-space-indented stuff, but apparently it needs to be
four-space indented to render as expected in MkDocs.
2023-07-13 16:32:59 +00:00
Charlie Marsh
d53b986fd4
Fix autofix capabilities in playground ( #5375 )
...
## Summary
These had just bitrotted over time -- we were no longer passing along
the row-and-column indices, etc.
## Test Plan

2023-06-26 16:40:28 +00:00
Dhruv Manilawala
07cc4bcb0f
Update links to point to Astral org ( #4949 )
2023-06-08 11:43:40 -04:00
dependabot[bot]
6532455672
Bump json5 from 1.0.1 to 1.0.2 in /playground ( #4354 )
2023-05-10 16:34:37 +00:00
Micha Reiser
cab65b25da
Replace row/column based `Location` with byte-offsets. ( #3931 )
2023-04-26 18:11:02 +00:00
Charlie Marsh
e603382cf0
Allow diagnostics to generate multi-edit fixes ( #3709 )
2023-03-26 16:45:19 -04:00
Micha Reiser
229f1c34cb
refactor: Extract `ruff_wasm` ( #3401 )
2023-03-09 10:07:39 +00:00
Jonathan Plasse
d285f5c90a
Run automatically format code blocks with Black ( #3191 )
2023-02-27 10:14:05 -05:00
Micha Reiser
cd8be8c0be
refactor: Introduce crates folder ( #2088 )
...
This PR introduces a new `crates` directory and moves all "product" crates into that folder.
Part of #2059 .
2023-02-05 16:47:48 -05:00
Jonathan Plasse
bdcab87d2f
Add `markdownlint` and dev Ruff to `pre-commit` ( #2303 )
2023-02-02 16:29:07 -05:00
Charlie Marsh
1eb331143d
Add Fathom to playground
2023-02-01 18:30:40 -05:00
Charlie Marsh
e4fad70a57
Update documentation to match latest terminology ( #1760 )
...
Closes #1759 .
2023-01-09 21:10:47 -05:00
Charlie Marsh
99906c16db
Prefer GitHub icon on mobile ( #1585 )
2023-01-02 22:46:23 -05:00
Charlie Marsh
b6cb35414e
Swap accent color for playground ( #1584 )
2023-01-02 22:44:09 -05:00
Charlie Marsh
afb6f55b8d
Add a link to GitHub from the playground ( #1583 )
2023-01-02 22:40:38 -05:00
Charlie Marsh
bfdf972a5d
Add code kind to Quick Fix action
2022-12-31 10:26:47 -05:00
Charlie Marsh
01c74e0629
Add a "fix message" to every autofix-able check ( #1489 )
2022-12-30 23:16:03 -05:00
Charlie Marsh
90574c1088
Set editor background on top-level component ( #1478 )
2022-12-30 07:55:54 -05:00
Charlie Marsh
16b10c42f0
Fix lint issues
2022-12-29 23:12:28 -05:00
Charlie Marsh
34cd22dfc1
Copy URL but don't update the hash ( #1458 )
2022-12-29 19:46:50 -05:00
Charlie Marsh
9fafe16a55
Re-add GitHub badge to the bottom of the page
2022-12-29 19:38:33 -05:00
Charlie Marsh
e9a4cb1c1d
Remove generated TypeScript options ( #1456 )
2022-12-29 19:37:49 -05:00
Charlie Marsh
9db825c731
Use trailingComma: 'all' ( #1457 )
2022-12-29 19:36:51 -05:00
Charlie Marsh
2c7464604a
Implement dark mode ( #1455 )
2022-12-29 19:33:46 -05:00
Charlie Marsh
cd2099f772
Move default options into WASM interface ( #1453 )
2022-12-29 18:06:57 -05:00
Charlie Marsh
9f7350961e
Rename config to settings in the playground ( #1450 )
2022-12-29 16:59:38 -05:00
Charlie Marsh
0ba3989b3d
Make update check enablement cofnigurable ( #1445 )
2022-12-29 13:06:22 -05:00
Charlie Marsh
acf0b82f19
Re-style the Ruff playground ( #1438 )
2022-12-29 11:47:27 -05:00
Charlie Marsh
7632d7eda7
Allow specification of explicit docstring convention ( #1408 )
2022-12-27 11:50:28 -05:00
Reiner Gerecke
534d8d049c
Support isort's force-single-line option ( #1366 )
2022-12-27 08:51:32 -05:00
Charlie Marsh
658cb87ddd
Enable Quick Fix in the playground ( #1395 )
2022-12-26 19:25:50 -05:00
Charlie Marsh
0d35087bc6
Choose a more interesting example snippet ( #1394 )
2022-12-26 15:19:17 -05:00
Charlie Marsh
b721125af9
Add badge to playground ( #1393 )
2022-12-26 15:13:55 -05:00
Charlie Marsh
20d6b21d77
Add ESLint, Prettier, and TypeScript checks ( #1384 )
2022-12-26 15:08:22 -05:00
Reiner Gerecke
bdb1505262
Web playground with WASM ( #1279 )
2022-12-26 12:09:17 -05:00