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

build: fix lint errors #2274

Merged
merged 1 commit into from
May 23, 2019
Merged

build: fix lint errors #2274

merged 1 commit into from
May 23, 2019

Conversation

wchargin
Copy link
Contributor

Summary:
Changes in #2267 displeased the Google linter: list(my_depset) is
banned because it’s not obvious that this forces iteration, so we switch
to the far clearer .to_list() everywhere.

The venerable linter further demands that docstrings be added, even for
drive-by fixes.

Test Plan:
A test import succeeds; all Google-internal tests pass.

wchargin-branch: import-lint

Summary:
Changes in #2267 displeased the Google linter: `list(my_depset)` is
banned because it’s not obvious that this forces iteration, so we switch
to the far clearer `.to_list()` everywhere.

The venerable linter further demands that docstrings be added, even for
drive-by fixes.

Test Plan:
A test import succeeds; all Google-internal tests pass.

wchargin-branch: import-lint
Copy link
Contributor

@stephanwlee stephanwlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@wchargin wchargin merged commit 9bbf305 into master May 23, 2019
@wchargin wchargin deleted the wchargin-import-lint branch May 23, 2019 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants