-
Notifications
You must be signed in to change notification settings - Fork 96
Fix missing arguments to WorkflowLinter
#2809
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
Conversation
return WorkflowLinter( | ||
self.workspace_client, | ||
self.dependency_resolver, | ||
self.path_lookup, | ||
TableMigrationIndex([]), # TODO: bring back self.tables_migrator.index() | ||
self.directfs_access_crawler_for_paths, | ||
self.used_tables_crawler_for_paths, |
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.
@ericvergnaud : Is the right UsedTablescrawler
?
Failing integration tests will be covered in other PRs, see integration test failure issues. |
Want to reuse tests from #2788 to increase the test coverage which blocks the CI |
bb63a48
to
b3590b5
Compare
✅ 42/42 passed, 1 flaky, 42m53s total Flaky tests:
Running from acceptance #6352 |
return UsedTablesCrawler(backend, schema, "used_tables_in_queries") | ||
|
||
def __init__(self, backend: SqlBackend, schema: str, table: str): | ||
def __init__(self, backend: SqlBackend, schema: str, table: str) -> None: |
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.
That's bad. For clarity class factory methods should always come before instance methods
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.
It is bad nor good, it is a style issue, this is consistent with the code base
) | ||
def test_global_context_attributes_not_none(attribute: str): | ||
def test_global_context_attributes_not_none(attribute: str) -> None: | ||
"""Attributes should be not None""" |
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.
should not be None ?
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.
We add -> None
to tests to trigger the linter. Actually not necessarily in this case as attribute has a type hint, but more consistent with other tests
Changes
Fix missing arguments to
WorkflowLinter
Linked issues
Resolves #2808