Closed manzt closed 1 year ago
please ignore the linting stuff. There seems to be some issue with how higlass
is detected in CI vs on my local machine for ruff's (isort) import sorting for things outside of src/
.
Locally, for test_test*.py
ruff
wants :
import pytest # third party
import higlass as hg # local
whereas in CI it wants:
import higlass as hg
import pytest
which makes me think for some reason higlass is being detected as a third-party module outside of src
in CI. The current config just turns off this rule when looking outside of src (but in CI only). This way we still enforce import sorting locally (and it will be automatically fixed with ruff --fix .
), but we just don't make it a criteria for passing CI.
Description
What was changed in this pull request?
Adds a context manager to
higlass._display.RendererRegistry
, which allows for temporarily enabling a renderer with a context manager.I think this will be useful for creating a separate (Jupyter-less) renderer for higlass-python, allowing for opening through a script (addressing #95):
For example, a simple script example:
Why is it necessary?
Fixes #___
Checklist
black
on the root directory