Skip to content

Commit 58c39f3

Browse files
committed
reduce amount of rules in the main text
1 parent 6259152 commit 58c39f3

1 file changed

Lines changed: 3 additions & 35 deletions

File tree

episodes/16-verifying-code-style-linters.md

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ only a subset that is considered a reasonable choice to identify common errors.
140140
You can enable a specific set of rules using the `--select` option. For instance,
141141
try to include the following set of rules, which are derived from some of the most
142142
popular tools, such as [pycodestyle](https://pypi.org/project/pycodestyle/)
143-
(`E` and `W` rules) and [isort](https://pypi.org/project/isort/) (`I` rules):
143+
(`E` rules) and [isort](https://pypi.org/project/isort/) (`I` rules):
144144

145145
```bash
146146
$ ruff check --select E,F,I inflammation
@@ -149,38 +149,6 @@ $ ruff check --select E,F,I inflammation
149149
Ruff will identify more problems in the codebase:
150150

151151
```output
152-
W291 Trailing whitespace
153-
--> inflammation/models.py:5:83
154-
|
155-
3 | The Model layer is responsible for the 'business logic' part of the software.
156-
4 |
157-
5 | Patients' data is held in an inflammation table (2D array) where each row contains
158-
| ^
159-
6 | inflammation data for a single patient taken over a number of days
160-
7 | and each column represents a single day across all patients.
161-
|
162-
help: Remove trailing whitespace
163-
164-
W291 Trailing whitespace
165-
--> inflammation/models.py:6:67
166-
|
167-
5 | Patients' data is held in an inflammation table (2D array) where each row contains
168-
6 | inflammation data for a single patient taken over a number of days
169-
| ^
170-
7 | and each column represents a single day across all patients.
171-
8 | """
172-
|
173-
help: Remove trailing whitespace
174-
175-
W291 [*] Trailing whitespace
176-
--> inflammation/models.py:13:24
177-
|
178-
13 | def load_csv(filename):
179-
| ^^
180-
14 | """Load a Numpy array from a CSV
181-
|
182-
help: Remove trailing whitespace
183-
184152
I001 [*] Import block is un-sorted or un-formatted
185153
--> inflammation/views.py:3:1
186154
|
@@ -201,8 +169,8 @@ F401 [*] `numpy` imported but unused
201169
|
202170
help: Remove unused import: `numpy`
203171
204-
Found 5 errors.
205-
[*] 3 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).
172+
Found 2 errors.
173+
[*] 2 fixable with the `--fix` option.
206174
```
207175

208176
It is important to note that while tools such as Ruff are great at giving you

0 commit comments

Comments
 (0)