GuardRails
VSCode extension to help developers set up guardrails around their functions, by helping them disambiguate purpose statements.
Requirements
- Python
Note:
GuardRails is fully tested only on Windows and currently provides experimental support for Linux.
Installing Python Dependencies for trimming and mutations
$ python -m pip install hypothesis hypothesis[cli] hypothesis[ghostwriter] black
$ python -m pip install git+https://github.com/mrigankpawagi/mutpy.git#egg=mutpy
$ python -m pip install func-timeout
Features
Copilot suggestion trimmer (for Python)
Control + Shift + / after opening suggestions panel (Control + Enter )
- Suggests a differentiating doctest if there are multiple valid suggestions and if the function arguments have type hinting.
Copilot suggestion mutator-trimmer (for Python)
Control + Shift + ; after opening suggestions panel (Control + Enter )
- Suggests a differentiating doctest if there are multiple valid suggestions or mutants and if the function arguments have type hinting.
| |