-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop requirement for consecutive lesson numbering #502
Comments
Hi Trevor,
Line 42 in a8eee52
and the matching we do: Lines 289 to 291 in a8eee52
so we don't need that Lines 290 to 294 in a8eee52
|
Ah-ha, thanks for highlighting the regular expression match. Very nice. We don't need numerical episode labels, and the manual numbering looks like it has some advantages -- at the expense of the current simplicity. I would prefer to maintain number labels for the HPC Carpentries, but it's good to know an alternative exists. |
lesson-check.py currently throws an error if the files contained in
_episodes
are not numbered sequentially, with an increment of one. This seems arbitrary, and forces a global renumbering when an episode is added or removed. A legitimate numbering scheme might increment by 5 or 10, since two-digit numbering is required. In development, or in a hybrid lesson, interstitial episodes might be inserted as well, so having spaces in the numbering is helpful for some common corner cases.Recommend removing the block, "Check that numbers are consecutive," from the lesson-check script.
Alternatively, that block could be replaced by a "Check that numbering is numerical," using
seen[i].isdigit()
.The text was updated successfully, but these errors were encountered: