Skip to content

Commit 16b98ab

Browse files
authored
make black[jupyter] installation cross-shell (psf#3394)
1 parent 96e62c5 commit 16b98ab

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Try it out now using the [Black Playground](https://black.vercel.app). Watch the
3939
### Installation
4040

4141
_Black_ can be installed by running `pip install black`. It requires Python 3.7+ to run.
42-
If you want to format Jupyter Notebooks, install with `pip install 'black[jupyter]'`.
42+
If you want to format Jupyter Notebooks, install with `pip install "black[jupyter]"`.
4343

4444
If you can't wait for the latest _hotness_ and want to install from GitHub, use:
4545

docs/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Also, you can try out _Black_ online for minimal fuss on the
1717
## Installation
1818

1919
_Black_ can be installed by running `pip install black`. It requires Python 3.7+ to run.
20-
If you want to format Jupyter Notebooks, install with `pip install 'black[jupyter]'`.
20+
If you want to format Jupyter Notebooks, install with `pip install "black[jupyter]"`.
2121

2222
If you can't wait for the latest _hotness_ and want to install from GitHub, use:
2323

src/black/handle_ipynb_magics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def jupyter_dependencies_are_installed(*, verbose: bool, quiet: bool) -> bool:
6464
if verbose or not quiet:
6565
msg = (
6666
"Skipping .ipynb files as Jupyter dependencies are not installed.\n"
67-
"You can fix this by running ``pip install black[jupyter]``"
67+
'You can fix this by running ``pip install "black[jupyter]"``'
6868
)
6969
out(msg)
7070
return False

tests/test_no_ipynb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_ipynb_diff_with_no_change_single() -> None:
1717
result = runner.invoke(main, [str(path)])
1818
expected_output = (
1919
"Skipping .ipynb files as Jupyter dependencies are not installed.\n"
20-
"You can fix this by running ``pip install black[jupyter]``\n"
20+
'You can fix this by running ``pip install "black[jupyter]"``\n'
2121
)
2222
assert expected_output in result.output
2323

@@ -32,6 +32,6 @@ def test_ipynb_diff_with_no_change_dir(tmp_path: pathlib.Path) -> None:
3232
result = runner.invoke(main, [str(tmp_path)])
3333
expected_output = (
3434
"Skipping .ipynb files as Jupyter dependencies are not installed.\n"
35-
"You can fix this by running ``pip install black[jupyter]``\n"
35+
'You can fix this by running ``pip install "black[jupyter]"``\n'
3636
)
3737
assert expected_output in result.output

0 commit comments

Comments
 (0)