Upgrade flake8-bugbear & fix linting
This commit is contained in:
Родитель
0f18eaaf4d
Коммит
085f358007
2
.flake8
2
.flake8
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче