2

我正在编写一个游戏,其中包含一个如下所示的预定义表:

SCORES = [
    [   1, 123,   0, 456],
    [  78,  90,  -1, 234],
    [ 567,   8,  90,  12],
    [   3,   4, 567, 890]
]

不出所料,为此flake8生气。我知道我可以添加# noqa这些行,但我有几个类似的表,它们实际上比 4*4 大得多。最好有类似的东西

# noqa-start

my_ugly_tables

# noqa-end

def regular_function_that_should_be_checked():
    pass

我在 Python 3.6 上使用 flake8 3.5.0。任何机会?

4

0 回答 0