-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix undefined names #679
Fix undefined names #679
Conversation
src/hgvs/dataproviders/uta.py
Outdated
@@ -624,6 +624,11 @@ def _set_search_path(self, cur): | |||
cur.execute("set search_path = {self.url.schema},public;".format(self=self)) | |||
|
|||
|
|||
class UTA_sqlite(UTABase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UTA_sqlite was removed long ago. I think the origin of this concern is uta.py:107, with a case for a sqlite scheme. We should remove that case rather than add an empty class.
Fixes linter error F821.
ee52656
to
d0943b8
Compare
Fixes linter error F821.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added these changes since last reviewed, had neglected to run ruff
on the tests/
path.
from hgvs.exceptions import (HGVSDataNotAvailableError, | ||
HGVSInvalidVariantError, | ||
HGVSUnsupportedOperationError) | ||
from hgvs.parser import Parser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduced a circular dependency from Parser <-> normalizer
Fixes linter error F821 raised by
ruff
. The linefrom hgvs.dataproviders.ncbi import connect
is only a guess on my part.Unblocks #673