flake8-rst allows for customized merging code-blocks. Like  ```  .. code-block:: python     :flake8-group: GroupForExample#1       code...  ```  However sphinx throws an exception if a directive is decorated by an unknown role.  So all it does is telling the IPython and code-block directive that certain roles can be added.    