Skip to content

[tools] Disallow unused variables - #11097

Merged
gsnedders merged 3 commits into
web-platform-tests:masterfrom
bocoup:tools-restrict-unused
May 22, 2018
Merged

gsnedders merged 3 commits into
web-platform-tests:masterfrom
bocoup:tools-restrict-unused

Conversation

@jugglinmike

@jugglinmike jugglinmike commented May 21, 2018 •

Copy link
Copy Markdown
Contributor

This change is Reviewable

@gsnedders gsnedders left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

per comment: flake8 config should be kept in sync across tools/tox.ini, tools/wpt/tox.ini, and tools/wptrunner/tox.ini

@jugglinmike

Copy link
Copy Markdown
Contributor Author

You're right. Sorry I missed that

@jugglinmike

Copy link
Copy Markdown
Contributor Author

@gsnedders I've updated the other two configuration files, removed the unused variables this exposed, and the tests have passed

@foolip foolip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sweet!


def get_hash(self, test, viewport_size, dpi):
timeout = test.timeout * self.timeout_multiplier
test.timeout * self.timeout_multiplier

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is dead code, just remove it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I swear this was a function call last night.

@gsnedders
gsnedders merged commit 7f994bd into web-platform-tests:master May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants