Upgrade flake8-bugbear & fix linting

This commit is contained in:
Jan-Erik Rediger 2022-08-02 13:24:32 +02:00 коммит произвёл Jan-Erik Rediger
Родитель 0f18eaaf4d
Коммит 085f358007
4 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -1,2 +0,0 @@
[flake8]
max-line-length = 88

Просмотреть файл

@ -2,7 +2,7 @@ black==22.3.0
coverage==6.4.1; python_version > '3.6'
coverage==6.2; python_version <= '3.6'
flake8==5.0.3
flake8-bugbear==22.4.25
flake8-bugbear==22.7.1
mypy==0.971
pip
pytest-runner==5.3.1

Просмотреть файл

@ -3,6 +3,7 @@ python_tag = py3
[flake8]
exclude = docs
max-line-length = 88
[aliases]
test = pytest

Просмотреть файл

@ -299,7 +299,7 @@ def test_gecko_datapoints(tmpdir):
"GV_PAGE_RELOAD_MS" -> PagePerf.reloadTime
else -> null
}
}"""
}""" # noqa
assert expected_func in content
@ -321,7 +321,7 @@ def test_gecko_datapoints(tmpdir):
"gfx_adapter.stand_alone" -> GfxInfoAdapter.standAlone
else -> null
}
}"""
}""" # noqa
assert expected_func in content
@ -331,7 +331,7 @@ def test_gecko_datapoints(tmpdir):
"gfx_adapter.vendor_id" -> GfxInfoAdapter.vendorId
else -> null
}
}"""
}""" # noqa
assert expected_func in content
@ -341,7 +341,7 @@ def test_gecko_datapoints(tmpdir):
"gfx_adapter.width" -> GfxInfoAdapter.screenWidth
else -> null
}
}"""
}""" # noqa
assert expected_func in content