You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Flake8-AAA on a test file that has additional blank lines in blocks, error AAA05 is not raised when those additional lines are followed by a hash-comment line.
For example:
# Line 1deftest_arrange_with_comment() ->None:
x=3# Y is a very important valuey=4result=x**2+y**2assertresult==25
AAA05 is not raised on line 4, and the test passes linting.
The same happens for Assert blocks:
# Line 1deftest_assert_with_comment() ->None:
x=3y=4result=x**2+y**2assertresult==25# Check it again, Samassertresult==25
The test passes lint unexpectedly.
Expected behaviour
It doesn't matter that the extra blank line is followed by a comment - AAA05 is raised.
In the first example, AAA05 is raised on line 4.
In the second example, AAA05 is raised on line 9.
Debugging info
Output of python --version:
Python 3.12.0
Output of flake8 --version:
7.0.0 (flake8-aaa: 0.17.0, mccabe: 0.7.0, pycodestyle: 2.11.1, pyflakes: 3.2.0) CPython 3.12.0 on Linux
The text was updated successfully, but these errors were encountered:
Current behaviour
When running Flake8-AAA on a test file that has additional blank lines in blocks, error
AAA05
is not raised when those additional lines are followed by a hash-comment line.For example:
AAA05
is not raised on line 4, and the test passes linting.The same happens for Assert blocks:
The test passes lint unexpectedly.
Expected behaviour
It doesn't matter that the extra blank line is followed by a comment -
AAA05
is raised.AAA05
is raised on line 4.AAA05
is raised on line 9.Debugging info
Output of
python --version
:Output of
flake8 --version
:The text was updated successfully, but these errors were encountered: