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 all the lint failures in the code base. #4

Merged
merged 17 commits into from
Apr 27, 2017

Conversation

ericsnowcurrently
Copy link
Contributor

This will allow us to start fresh and have travis check lint reliably.

@ericsnowcurrently
Copy link
Contributor Author

@CanonicalLtd/landscape

Copy link
Contributor

@simpoir simpoir left a comment

Choose a reason for hiding this comment

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

+1 lgtm with inline comment.

To be honest I'm really not a big fan of ignoring "E125 continuation line with same indent" and I'd rather see the conditions evaluated in a var the line above, but it's not worse than it was.

Makefile Outdated
@@ -78,16 +78,13 @@ ci-check: depends build check ## Install dependencies and run all the tests.

.PHONY: lint
lint:
bzr ls-lint
flake8 --ignore E24,E121,E123,E125,E126,E221,E226,E266,E704 \
Copy link
Contributor

Choose a reason for hiding this comment

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

minor issue: at least on xenial, python3-flake8 does not provide the /usr/bin/flake8 launcher. The flake8 package provides this.

TIME_UNTIL_NOTIFY = 10
TIME_ADVANCED = 20 # time that we've already advanced
self.reactor.advance(TIME_UNTIL_EXCHANGE -
(TIME_UNTIL_NOTIFY + TIME_ADVANCED))
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -145,7 +145,7 @@ def test_get_network_traffic(self):
self.assertEqual(traffic, test_proc_net_dev_parsed)


#exact output of cat /proc/net/dev snapshot with line continuations for pep8
# exact output of cat /proc/net/dev snapshot with line continuations for pep8
Copy link
Contributor

Choose a reason for hiding this comment

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

the irony :)

os.path.basename(config_filename) + ".ssl_public_key")
key_filename = os.path.join(
data_path,
os.path.basename(config_filename) + ".ssl_public_key")
Copy link
Contributor

Choose a reason for hiding this comment

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

overindented?

@ericsnowcurrently ericsnowcurrently merged commit 6fc93e8 into canonical:master Apr 27, 2017
@ericsnowcurrently ericsnowcurrently deleted the fix-lint branch April 27, 2017 22:26
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.

2 participants