-
Notifications
You must be signed in to change notification settings - Fork 105
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
update style to satisfy new flake8 plugins #84
Conversation
@@ -1,5 +1,5 @@ | |||
[flake8] | |||
ignore = D100,D101,D102,D103,D104,D105,D203,D212,D404 | |||
ignore = C816,D100,D101,D102,D103,D104,D105,D203,D212,D404 |
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.
is this ignored because it conflicts with another enforced rule (C815?) ?
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.
No, C816
is a suggestion specific to Python 3.6+. Since we are targeting only 3.5 we can't use the suggested style.
license = licenses[args.add_missing[1]] | ||
add_missing_header(file_descriptors, name, license, args.verbose) | ||
add_missing_header( | ||
file_descriptors, name, licenses[args.add_missing[1]], args.verbose) |
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.
what was the error we're addressing here? if it's that we don't want 'wasteful' variables I don't think we should enforce that across the whole codebase as a general rule, because it's usually done for improved readability. but it may have been for another reason.
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.
license
is a built-in in Python and should not be used as a variable name.
eb7feb6
to
9652e49
Compare
9652e49
to
332b80e
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.
lgtm
update style to satisfy new flake8 plugins
Connect to ros2/ci#98.