-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Fix Pylint violations (medium) #7063
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
Changes from all commits
90b3318
6c06f8c
0248660
83fec5d
b9ed4b6
268cb46
e7e9a16
79f9d1a
f03b943
181eed2
4e2927f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,7 +106,7 @@ def setup_course(self): | |
| # username = robot{0}, password = 'test' | ||
| self.users = [ | ||
| UserFactory.create() | ||
| for i in range(self.USER_COUNT) | ||
| for dummy0 in range(self.USER_COUNT) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pylint supports this syntax as a valid name for unused variables. Using
Often times, I'll prepend a |
||
| ] | ||
|
|
||
| for user in self.users: | ||
|
|
||
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.
Do you know why this code is
Exception.__str__(self, *args, **kwargs)instead of justself? The string formatting should automatically coerce theselfargument to a string.If you don't want to make this change, that's fine with me -- I'm in favor of keeping this pull request small and focused as much as possible. This just caught my eye, and I was confused.
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.
Yeah, I'm not sure either, so I think I'll opt to pass for now :)