File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
7272After fixing the problem with the bracket and running ``pylint `` again we
7373get 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
108108You can also notice that the changes have increased the rating and
109109Pylint 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
305305Running 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)
You can’t perform that action at this time.
0 commit comments