|
12 | 12 | Now, our book focuses on \python\ programming, so \bash\ shell scripts are not in the center of our attention.
|
13 | 13 | We here cannot explain how \bash\ scripts work or what their syntax is.
|
14 | 14 | There exist plenty of books and resources on this interesting topic, such as~\cite{NR2005LTBSUSPCB3,Z2017MB,BN2018BC} or \url{https://www.gnu.org/software/bash/}.
|
15 |
| -If we would include the scripts in the places where we use them in this book, then this would lead to confusion or tangents in the text which would mess up the flow of chapters. |
| 15 | +If we would include the scripts in the places where we use them in this book, then this would lead to confusion or tangents in the text which would mess up the flow of the chapters. |
16 | 16 | Nevertheless, the book would be incomplete if these scripts were not provided at all.
|
17 | 17 | So we put them here, at the end of the book, where they do not hurt anyone and where the interested reader may check them out.%
|
18 | 18 |
|
|
23 | 23 | Then, it executes it.
|
24 | 24 | \mypy\ will print its comments and messages to the standard output.
|
25 | 25 | Finally, the script shows the \mypy\ version and exit code in a brief success or failure message (with a prepended~\expandafter\textil{\#}).
|
| 26 | +\Cref{exec:variables:variable_types_wrong_hints_1:mypy,exec:variables:variable_types_wrong_hints_2:mypy} are example outputs of this script. |
26 | 27 |
|
27 | 28 | \Cref{lst:bash:ruff} works basically the same way, just for \ruff.
|
28 | 29 | However, it sets a lot more parameters to \ruff.
|
29 | 30 | See, \ruff\ offers many more configuration options and many more different things that it can check for, compared to \mypy.
|
30 | 31 | In it's present form, it does not check for type errors, as far as I know, though.
|
31 | 32 | Either way, it is harder to balance the strictness of the tool and there are even some rules which are sometimes mutually exclusive.
|
32 | 33 | Hence, we compose a more complex command.
|
33 |
| -Apart from that, this script works pretty much the same as \cref{lst:bash:mypy}.% |
| 34 | +Apart from that, this script works pretty much the same as \cref{lst:bash:mypy}. |
| 35 | +\Cref{exec:lists:lists_error:ruff,exec:lists:lists_fixed:ruff} are examples for the output of this script.% |
34 | 36 | %
|
35 | 37 | \endhsection%
|
36 | 38 | %
|
0 commit comments