Bug 1831273 [wpt PR 39843] - Flake8 upgrade, a=testonly
commit84144fc928ea1a93dc778f9d15c84a699b981a14
authorPhilip Jägenstedt <philip@foolip.org>
Wed, 17 May 2023 13:32:48 +0000 (17 13:32 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 21 May 2023 22:44:18 +0000 (21 22:44 +0000)
tree78bc005e828e64e022525a3ef113c65752345160
parent8b5a78ae9d426c30042bb1ecebc8feee00031d87
Bug 1831273 [wpt PR 39843] - Flake8 upgrade, a=testonly

Automatic update from web-platform-tests
Bump flake8 and related dependencies

--
Fix E275 missing whitespace after keyword

--
Run com2ann on tools/

find . -name '*.py' -not -path './third_party/*' -not -path '*/.tox/*' | xargs -n1 com2ann

--
Fix mypy errors

We can't use None as the default value for non-optional ClassVar

--
Fix flake8 errors

--
Fix typing imports

These need to be unconditional unless quoting all types

--
Fixup case where we try to access an unset ClassVar

--
Don't use MutableMapping from collections.abc

That can't be used as a type parameter directly in Python < 3.9

--
Fix use of abstract base class in WebDriver module

--
Make class properties on PropertyUpdate Optional

--
Mark abstract classes in wpttest

Also make subtest result type optional since not all tests have subtests

--
Remove unused ManualTest from wpttest

--
Revert to flake8 5.x for older Python versions

6.x require Python 3.8.1+

This should be fine as long as the newer and older versions don't have contradictory requirements.
If that happens we need to revert to the oldest supported version, but in the meantime this
should make future upgrades easier.

--
Fix some indentation

--

wpt-commits: 72af240b562643fe63f1fbea611c1dc77538131c643d331a8eb5c1c50d26cb75222299d288c6758c70b5172d204d1528bdd7f6ce74ea557d426b7959219cbdc58dec47bd71d76772bd51fd6b75f882ae471d576df909bc58f79d15f00f2170c77434105717ba76426e2f0d37f83cbbe935f56a8c9473a04f35adade2df8122ca23c0b5846fb850833b787aea9bd367da8185477f351e6731ae931d317b5ab5f5f4755ee2d3f72bc9a13018f9c9eb547e05080a90de1b7117ee5434765a007d2fab31035c505ba586909c62abf39fdc042d93187b2058964b2ed880682451ebf87ad755c8be9f1a27efd4434f6591d314121fa8ffca6c65ec3e8eb262adf276d9f0705c838d18a93b4cc696a6308d58c42116701605d8e6b3
wpt-pr: 39843
35 files changed:
testing/web-platform/tests/tools/ci/manifest_build.py
testing/web-platform/tests/tools/ci/tc/github_checks_output.py
testing/web-platform/tests/tools/gitignore/gitignore.py
testing/web-platform/tests/tools/gitignore/tests/test_gitignore.py
testing/web-platform/tests/tools/lint/fnmatch.py
testing/web-platform/tests/tools/lint/lint.py
testing/web-platform/tests/tools/lint/rules.py
testing/web-platform/tests/tools/manifest/XMLParser.py
testing/web-platform/tests/tools/manifest/download.py
testing/web-platform/tests/tools/manifest/item.py
testing/web-platform/tests/tools/manifest/jsonlib.py
testing/web-platform/tests/tools/manifest/log.py
testing/web-platform/tests/tools/manifest/manifest.py
testing/web-platform/tests/tools/manifest/sourcefile.py
testing/web-platform/tests/tools/manifest/testpaths.py
testing/web-platform/tests/tools/manifest/tests/test_manifest.py
testing/web-platform/tests/tools/manifest/typedata.py
testing/web-platform/tests/tools/manifest/update.py
testing/web-platform/tests/tools/manifest/utils.py
testing/web-platform/tests/tools/manifest/vcs.py
testing/web-platform/tests/tools/requirements_flake8.txt
testing/web-platform/tests/tools/serve/serve.py
testing/web-platform/tests/tools/webdriver/webdriver/bidi/error.py
testing/web-platform/tests/tools/webdriver/webdriver/error.py
testing/web-platform/tests/tools/wpt/browser.py
testing/web-platform/tests/tools/wpt/run.py
testing/web-platform/tests/tools/wpt/testfiles.py
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/base.py
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py
testing/web-platform/tests/tools/wptrunner/wptrunner/manifestupdate.py
testing/web-platform/tests/tools/wptrunner/wptrunner/tests/browsers/test_webkitgtk.py
testing/web-platform/tests/tools/wptrunner/wptrunner/update/base.py
testing/web-platform/tests/tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py
testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
testing/web-platform/tests/tools/wptserve/wptserve/pipes.py