File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ Please make sure that the bug is not already fixed either in newer versions or t
1111current development version. To confirm this, you have three options:
1212
13131. Update Black's version if a newer release exists: `pip install -U black`
14- 2. Use the online formatter at <https://black.vercel.app/?version= main>, which will use
15- the latest main branch.
16- 3. Or run _Black_ on your machine:
14+ 2. Install the latest ` main` branch directly:
15+ `pip install "black @ git+https://github.com/psf/black.git"`
16+ 3. Or run _Black_ from source on your machine:
1717 - create a new virtualenv (make sure it's the same Python version);
1818 - clone this repository;
1919 - run `pip install -e .[d]`;
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ becomes transparent after a while and you can focus on the content instead.
2626
2727_ Black_ makes code review faster by producing the smallest diffs possible.
2828
29- Try it out now using the [ Black Playground] ( https://black.vercel.app ) . Watch the
30- [ PyCon 2019 talk] ( https://youtu.be/esZLCuWs_2Y ) to learn more.
29+ Watch the [ PyCon 2019 talk] ( https://youtu.be/esZLCuWs_2Y ) to learn more.
3130
3231---
3332
Original file line number Diff line number Diff line change @@ -9,10 +9,14 @@ how _Black_ will format your code. _Black_ isn't for everyone and you may find s
99that is a dealbreaker for you personally, which is okay! The current _ Black_ code style
1010[ is described here] ( ./the_black_code_style/current_style.md ) .
1111
12- ## Try it out online
12+ ## Try it out quickly
1313
14- Also, you can try out _ Black_ online for minimal fuss on the
15- [ Black Playground] ( https://black.vercel.app ) generously created by José Padilla.
14+ If you want a quick taste of _ Black_ without creating a file first, format a snippet
15+ from the command line:
16+
17+ ``` sh
18+ black --code " x = { 'a':1,'b':2 }"
19+ ```
1620
1721## Installation
1822
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ _Black_ makes code review faster by producing the smallest diffs possible. Black
1515code looks the same regardless of the project you're reading. Formatting becomes
1616transparent after a while and you can focus on the content instead.
1717
18- Try it out now using the [ Black Playground] ( https://black.vercel.app ) .
19-
2018``` {admonition} Note - Black is now stable!
2119_Black_ is [successfully used](https://github.com/psf/black#used-by) by many projects,
2220small and big. _Black_ has a comprehensive test suite, with efficient parallel tests,
You can’t perform that action at this time.
0 commit comments