-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix all the lint failures in the code base. #4
Conversation
49f835a
to
bba0513
Compare
@CanonicalLtd/landscape |
bba0513
to
0f4cb5a
Compare
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.
+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 \ |
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.
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)) |
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.
❤
@@ -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 |
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.
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") |
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.
overindented?
0f4cb5a
to
b8ed2e1
Compare
This will allow us to start fresh and have travis check lint reliably.