Skip to content

Commit 91160b8

Browse files
authored
Apply suggestions from code review
Make console blocks `console` instead of `sh` so that `$` is handled well
1 parent 86cd14d commit 91160b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/productivity.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ script (:download:`lint_example.py <../resources/code/productivity/lint_example.
5555
5656
plt.show()
5757
58-
.. code-block:: sh
58+
.. code-block:: console
5959
6060
$ pylint lint_example.py
6161
************* Module lint_example
@@ -72,7 +72,7 @@ and look at the
7272
After fixing the problem with the bracket and running ``pylint`` again we
7373
get more errors:
7474

75-
.. code-block:: sh
75+
.. code-block:: console
7676
7777
$ pylint lint_example.py
7878
************* Module lint_example
@@ -108,7 +108,7 @@ After changing the import stamement, the code works correctly and running
108108
You can also notice that the changes have increased the rating and
109109
Pylint will show the improvement since last run.
110110

111-
.. code-block:: sh
111+
.. code-block:: console
112112
113113
$ pylint lint_example.py
114114
************* Module lint_example
@@ -304,7 +304,7 @@ Let's use black and flake8 (with ``pep8-naming``-extension) to modify
304304
305305
Running flake8 to check for style problems we get the following output:
306306
307-
.. code-block:: bash
307+
.. code-block:: console
308308
309309
$ flake8 code_style_example.py
310310
code_style_example.py:1:7: E271 multiple spaces after keyword
@@ -408,7 +408,7 @@ Comparing the fixed one to the original one the code is much more legible.
408408
`yapf <https://github.com/google/yapf>`__, which supports formatting based on
409409
arithmetic precedence:
410410
411-
.. code-block:: bash
411+
.. code-block:: console
412412
413413
$ yapf --style='{based_on_style: pep8, arithmetic_precedence_indication=true}' --diff code_style_example.py
414414
--- code_style_example.py (original)

0 commit comments

Comments
 (0)