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:
72af240b562643fe63f1fbea611c1dc77538131c,
643d331a8eb5c1c50d26cb75222299d288c6758c,
70b5172d204d1528bdd7f6ce74ea557d426b7959,
219cbdc58dec47bd71d76772bd51fd6b75f882ae,
471d576df909bc58f79d15f00f2170c774341057,
17ba76426e2f0d37f83cbbe935f56a8c9473a04f,
35adade2df8122ca23c0b5846fb850833b787aea,
9bd367da8185477f351e6731ae931d317b5ab5f5,
f4755ee2d3f72bc9a13018f9c9eb547e05080a90,
de1b7117ee5434765a007d2fab31035c505ba586,
909c62abf39fdc042d93187b2058964b2ed88068,
2451ebf87ad755c8be9f1a27efd4434f6591d314,
121fa8ffca6c65ec3e8eb262adf276d9f0705c83,
8d18a93b4cc696a6308d58c42116701605d8e6b3
wpt-pr: 39843