現在,如果我有一些這樣的功能,我希望能夠得到有關index未定義的錯誤,同時忽略some_index未定義的錯誤。 def myfunction(ind, other):
"""
Parameters
----------
ind: Index
other: Index or set
Returns
-------
我的項目使用4個空格寬度進行縮進。 但是,在其上運行flake8會產生警告,表明預期的製表符/縮進寬度爲2個空格。 如何配置flake8正確接受4個空格用於縮進? class Foo(object):
bar = True
上面提到的是我(在簡化)的代碼片段 flake8標誌線#2警告說: [W0311] Bad indentation. Found 4 spaces, expect