dsa-ou / allowed

Check if a program only uses a subset of the Python language.
https://dsa-ou.github.io/allowed/
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

Update M269 configuration for 24J #36

Closed mwermelinger closed 2 months ago

mwermelinger commented 9 months ago

Add new constructs (e.g. +=) and remove unused ones (e.g. the Counter and deque classes), after modifying the book.

mwermelinger commented 8 months ago

After updating, run it on whole book to check code.

mwermelinger commented 7 months ago

Maybe add the TM112 constructs used in M269 to a unit 0 (pre-requisite knowledge) even if they are repeated later. This would avoid the flagging of all unit 1 code. Need to check if a unit 0 is possible, because allowed uses it as default value for "all units". Maybe use None for that purpose.

mwermelinger commented 2 months ago

Allow importing algoesup test and time functions

mwermelinger commented 2 months ago

Add new configuration as new file rather than replacing current one and make it new default? Or keep old default, but change the default in algoesup? Or add -c m269_24j.json to TMAs? See #68

mwermelinger commented 2 months ago

Decided to keep default for backward compatibility and to add Chapter 1 constructs to unit 1.