Skip to content
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

Merged
merged 3 commits into from
Sep 11, 2023
Merged

Conversation

ecalifornica
Copy link
Member

Fixes linter error F821 raised by ruff. The line from hgvs.dataproviders.ncbi import connect is only a guess on my part.

Unblocks #673

@ecalifornica ecalifornica requested a review from reece as a code owner August 26, 2023 04:55
@@ -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):
Copy link
Member

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.
Copy link
Member Author

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.

@reece reece merged commit 352c34c into biocommons:main Sep 11, 2023
from hgvs.exceptions import (HGVSDataNotAvailableError,
HGVSInvalidVariantError,
HGVSUnsupportedOperationError)
from hgvs.parser import Parser
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants