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

`FILE_UNIT` should not be in the configuration #66

Closed mwermelinger closed 5 months ago

mwermelinger commented 6 months ago

The configuration should only define the Python subset and not the FILE_UNIT regex that extracts units from file names, as the latter can vary among users. It can also lead to mistakes, as reported by @densnow: the M269 configuration will check all files 23J_....ipynb against units 1-23 if option -u is not given.