Something like:
check50.import_checks("../less", prefix="less_")
Right now it's too easy to break checks through naming conflicts.
This feature would require renaming in check50.runner._check_names.
There's also currently a weird dependency on the original function name, rather than the decorated one, within the dependency graph. This is caused because the CheckResults are created from the original function, and the dependency graph operates on these results. Down the line, this causes things to break if you rename the decorated function, but not the original one. We should change this such that everything uses the decorated function name as you would expect.
Here's a working example implemented in the checks:
https://github.com/minprog/cs50x/blob/2019/sentimental/__init__.py
Something like:
Right now it's too easy to break checks through naming conflicts.
This feature would require renaming in check50.runner._check_names.
There's also currently a weird dependency on the original function name, rather than the decorated one, within the dependency graph. This is caused because the CheckResults are created from the original function, and the dependency graph operates on these results. Down the line, this causes things to break if you rename the decorated function, but not the original one. We should change this such that everything uses the decorated function name as you would expect.
Here's a working example implemented in the checks:
https://github.com/minprog/cs50x/blob/2019/sentimental/__init__.py