Skip to content

Commit c6daf57

Browse files
authored
Apply suggestions from code review
1 parent db5b7c8 commit c6daf57

19 files changed

Lines changed: 41 additions & 41 deletions

_episodes/15-coding-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Avoid extraneous whitespace in the following situations:
279279
augmented assignment (+=, -= etc.),
280280
comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not),
281281
booleans (and, or, not).
282-
- do not use spaces around the = sign
282+
- Do not use spaces around the = sign
283283
when used to indicate a keyword argument assignment
284284
or to indicate a default value for an unannotated function parameter
285285
~~~

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ see the "W0611: Unused numpy imported as np (unused-import)" warning.
140140

141141
It is important to note that while tools such as Pylint are great at giving you
142142
a starting point to consider how to improve your code,
143-
they Will not find everything that may be wrong with it.
143+
they will not find everything that may be wrong with it.
144144

145145
> ## How Does Pylint Calculate the Score?
146146
>

_episodes/21-automatically-testing-software.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ to test that our calculated result is the same as our expected result.
254254
This function explicitly checks the array's shape and elements are the same,
255255
and throws an `AssertionError` if they are not.
256256
In particular, note that we cannot just use `==` or other Python equality methods,
257-
since these Will not work properly with NumPy arrays in all cases.
257+
since these will not work properly with NumPy arrays in all cases.
258258

259259
We could then add to this with other tests that use and test against other values,
260260
and end up with something like:
@@ -416,7 +416,7 @@ but what you learn can scale to more complex functional testing for applications
416416
>
417417
> Other unit testing frameworks exist for Python,
418418
> including Nose2 and Unittest, with Unittest supplied as part of the standard Python library.
419-
> it is also worth noting that Pytest supports tests written for Unittest,
419+
> It is also worth noting that Pytest supports tests written for Unittest,
420420
> a useful feature if you wish to prioritise use of the standard library initially,
421421
> but retain the option to move Pytest in the future.
422422
>

_episodes/23-continuous-integration-automated-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218

219219
***Note**: be sure to create this file as `main.yml`
220220
within the newly created `.github/workflows` directory,
221-
or it Will not work!*
221+
or it will not work!*
222222

223223
So as well as giving our workflow a name - CI -
224224
we indicate with `on` that we want this workflow to run when we `push` commits to our repository.

_episodes/24-diagnosing-issues-improving-robustness.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ so this will clearly break if we are dividing by zero here,
398398
resulting in `NaN` values in the normalised array.
399399

400400
With all this in mind,
401-
Let us add a few edge cases to our parametrisation of `test_patient_normalise`.
401+
let us add a few edge cases to our parametrisation of `test_patient_normalise`.
402402
We will add two extra tests,
403403
corresponding to an input array of all 0,
404404
and an input array of all 1.
@@ -821,7 +821,7 @@ do not forget to remove the `--fail-under` argument to Pytest
821821
in our GitHub Actions configuration file too,
822822
since we do not need it anymore.
823823
824-
Now when we run Pylint we Will not be penalised for having a reasonable line length.
824+
Now when we run Pylint we will not be penalised for having a reasonable line length.
825825
For some further hints and tips on how to approach using Pylint for a project,
826826
see [this article](https://pythonspeed.com/articles/pylint/).
827827

_episodes/33-code-decoupling-abstractions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ In the code from our current branch `full-data-analysis`,
5959
you may have noticed that loading data from CSV files from a `data` directory is "hardcoded" into
6060
the `analyse_data()` function.
6161
Data loading is a functionality separate from data analysis, so firstly
62-
Let us decouple the data loading part into a separate component (function).
62+
let us decouple the data loading part into a separate component (function).
6363

6464
> ## Exercise: Decouple Data Loading from Data Analysis
6565
>

_episodes/43-software-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ make sure you have got the correct virtual environment activated.
7979

8080
Poetry can also handle virtual environments for us,
8181
so in order to behave similarly to how we used them previously,
82-
Let us change the Poetry config to put them in the same directory as our project:
82+
let us change the Poetry config to put them in the same directory as our project:
8383

8484
~~~ bash
8585
$ poetry config virtualenvs.in-project true

_episodes/51-managing-software.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The [default labels available in GitHub](https://docs.github.com/en/issues/using
8080
- `help wanted` - indicates that a maintainer wants help on an issue or pull request
8181
- `invalid` - indicates that an issue, pull request, or discussion is no longer relevant
8282
- `question` - indicates that an issue, pull request, or discussion needs more information
83-
- `wontfix` - indicates that work Will not continue on an issue, pull request, or discussion
83+
- `wontfix` - indicates that work will not continue on an issue, pull request, or discussion
8484

8585
You can also create your own custom labels to help with classifying issues.
8686
There are no rules really about naming the labels -
@@ -122,7 +122,7 @@ the easier the code is to use, the more widely it will be adopted
122122
and the greater impact it will have.
123123

124124
One interesting label is `wontfix`,
125-
which indicates that an issue simply Will not be worked on for whatever reason.
125+
which indicates that an issue simply will not be worked on for whatever reason.
126126
Maybe the bug it reports is outside of the use case of the software,
127127
or the feature it requests simply is not a priority.
128128
This can make it clear you have thought about an issue and dismissed it.

_episodes/52-assessing-software-suitability-improvement.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ objectives:
1010
- "Conduct an assessment of software against suitability criteria"
1111
- "Describe what should be included in software issue reports and register them"
1212
keypoints:
13-
- "it is as important to have a critical attitude to adopting software as we do to developing it."
13+
- "It is as important to have a critical attitude to adopting software as we do to developing it."
1414
- "As a team agree on who and to what extent you will support software you make available to others."
1515
---
1616

@@ -83,14 +83,14 @@ will help you adopt the same attitude when assessing your own software for futur
8383
> - Manage your support:
8484
> an issue tracker - like the one in GitHub - is essential to track and manage issues
8585
> - Manage expectations:
86-
> Let users know the level of support you offer,
86+
> let users know the level of support you offer,
8787
> in terms of when they can expect responses to queries,
8888
> the scope of support (e.g. which platforms, types of releases, etc.),
8989
> the types of support (e.g. bug resolution, helping develop tailored solutions),
9090
> and expectations for support in the future (e.g. when project funding runs out)
9191
>
9292
> All of this requires effort, and you cannot do everything.
93-
> it is therefore important to agree and be clear on
93+
> It is therefore important to agree and be clear on
9494
> how the software will be supported from the outset,
9595
> whether it is within the context of a single laboratory,
9696
> project,

_episodes/53-improvement-through-feedback.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ MoSCoW is an acronym that stands for
149149
**Must have**,
150150
**Should have**,
151151
**Could have**,
152-
and **Will not have**.
152+
and **Won't have**.
153153
Each requirement is discussed by the stakeholder group and falls into one of these categories:
154154

155155
- *Must Have* (MH) -
@@ -164,7 +164,7 @@ Each requirement is discussed by the stakeholder group and falls into one of the
164164
- *Could Have* (CH) -
165165
these are desirable but not necessary,
166166
and each of these will be included in this timebox if it can be achieved.
167-
- *Will not Have* (WH) -
167+
- *Won't Have* (WH) -
168168
these are agreed to be out of scope for this timebox,
169169
perhaps because they are the least important or not critical for this phase of development.
170170

@@ -187,7 +187,7 @@ you have still delivered it *successfully*.
187187

188188
### GitHub's Milestones
189189

190-
Once we have decided on those we will work on (i.e. not Will not Haves),
190+
Once we have decided on those we will work on (i.e. not Won't Haves),
191191
we can (optionally) use a GitHub's **Milestone** to organise them for a particular timebox.
192192
Remember, a milestone is a collection of issues to be worked on in a given period (or timebox).
193193
We can create a new one by selecting `Issues` on our repository,
@@ -216,7 +216,7 @@ Let us now use Milestones to plan and prioritise our team's next sprint.
216216
> Put your stakeholder hats on, and as a team apply MoSCoW to the repository issues
217217
> to determine how you will prioritise effort to resolve them in the allotted time.
218218
> Try to stick to the 60/20/20 rule,
219-
> and assign all issues you'll be working on (i.e. not `Will not Haves`) to a new milestone,
219+
> and assign all issues you will be working on (i.e. not `Won't Haves`) to a new milestone,
220220
> e.g. "Tidy up documentation" or "version 0.1".
221221
>
222222
>
@@ -257,7 +257,7 @@ and serves to highlight any blockers and challenges to meeting the sprint goal.
257257
{: .challenge}
258258

259259
Depending on how many issues were registered on your repository,
260-
it is likely you Will not have resolved all the issues in this first milestone.
260+
it is likely you will not have resolved all the issues in this first milestone.
261261
Of course, in reality, a sprint would be over a much longer period of time.
262262
In any event, as the development progresses into future sprints
263263
any unresolved issues can be reconsidered and prioritised for another milestone,

0 commit comments

Comments
 (0)