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
Flake8 ignore #134
Flake8 ignore #134
Conversation
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.
Wouldn't it be more pythonic to use assert <cond>
directly? Or is there actually a need to check that these tests result in booleans?
example/division_by_zero_error.py
Outdated
@@ -1 +1,2 @@ | |||
"""Exmple file that raises ZeroDivisionError.""" |
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.
Should be Example
rather than Exmple
.
Probably, but the specific error code is checking for |
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.
Looks good!
One comment, be careful when using is
vs ==
, as is
will work for cached values such as a
or true
but not for values such as [1]
.
@briancohan Just wondering why the switch from |
I don't think the |
Reduced the number of error codes ignored by flake8 in the tox.ini file.
The main goal was to add more structure to the docstrings, however additional codes were removed. No functional changes were made in the codebase. The only "code" that was changed what altering the tests from
assert <cond> == True
toassert <cond> is True
.For the error codes that remain, the meaning of the error codes has been provided in tox.ini.