Skip to content
← Back to Community
Green underline below my codes (Python)
Profile icon
Blink

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

This file cannot be displayed: https://storage.googleapis.com/replit/images/1557803289562_e37916ceb709a80cbcdbeebef90f3b0e.pn

Voters
Profile icon
Sofia-JascineJa
Profile icon
bellam-samanth-chowdary
Profile icon
BenjaminMurdamo
Profile icon
HamzaSayes
Profile icon
Blink
Comments
hotnewtop
Profile icon
DerekHu2

it means that you didn't use it

Profile icon
AarivDhanuka1

It means your cyclomatic complexity is 2 high.

Profile icon
TheDrone7

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

Profile icon
Blink

@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

Profile icon
TheDrone7

@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.

Profile icon
apatterson189

@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

Profile icon
Blink

@TheDrone7
This file cannot be displayed: https://storage.googleapis.com/replit/images/1557805730608_85aa34199ba05dfcdf900e1a72012b21.pn

Didn't change anything.

Profile icon
Blink

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

Profile icon
apatterson189

@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.