W
W
Web__Nikita032019-05-19 19:34:08
Python
Web__Nikita03, 2019-05-19 19:34:08

Why is FLAKE8 giving error E800?

Used flake8, wrote a simple code - a pig

# usr/bin/env python3
# noqa: Z432

count = 0
for _i in range(20):
    count += 1
print(count)

It gives errors, I decided to try to ignore one (for the sake of interest, to understand how this is done). I did as it is written in the office. documentation. Now it gives another E800 error. What did I do wrong?
5ce184e787bfb074026034.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-05-19
@Web__Nikita03

The noqa comment is written on the line where the problem needs to be ignored.
for _i in range(20): # noqa: Z432

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question