Ask coding questions

← Back to all posts
Green underline below my codes (Python)
Blink (5)

My code works fine. Its just I'm curious what does this green line means.

https://storage.googleapis.com/replit/images/1557803289562_e37916ceb709a80cbcdbeebef90f3b0e.pn

Comments
hotnewtop
DerekHu2 (2)

it means that you didn't use it

AarivDhanuka1 (1)

It means your cyclomatic complexity is 2 high.

TheDrone7 (1935)

Hover your mouse pointer over over that code to find out.

Blink (5)

@TheDrone7 Here's what it says "W191 indentation contains tabs" Tried to check the code and the indentation. I think nothing is wrong with it. I just want to know the green line does

TheDrone7 (1935)

@Blink it means that in the editor settings you set the indentation type to "spaces" and are using "tabs" for indentation. The green line does not mean there is an error, it just means that your code is not styled how it was supposed to be.

apatterson189 (1)

@TheDrone7 Seems to be http://pycodestyle.pycqa.org/en/latest/intro.html. You can configure it with a setup.cfg file. I did so here https://repl.it/@apatterson189/example-using-pytest-with-watch to disable the indentation warning

Blink (5)

@TheDrone7
https://storage.googleapis.com/replit/images/1557805730608_85aa34199ba05dfcdf900e1a72012b21.pn

Didn't change anything.

Blink (5)

@apatterson189 So how can I use the setup.cfg?

apatterson189 (1)

@Blink http://pycodestyle.pycqa.org/en/latest/intro.html#configuration goes into detail, I have a setup.cfg in https://repl.it/@apatterson189/example-using-pytest-with-watch which disables the indentation warning. I recall it didn't seem to have an effect until I reloaded though.