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.
[x] add a --file-unit <regex> option
[x] remove FILE_UNIT from json files, change code accordingly
[x] add tests with new option (requires filenames with numbers)
[x] test with the M269 book folder
[x] update usage and configuration docs and change log
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 files23J_....ipynb
against units 1-23 if option-u
is not given.--file-unit <regex>
optionFILE_UNIT
from json files, change code accordingly