upgrade pyflakes / pycodestyle

This commit is contained in:
anthony sottile 2025-06-20 15:15:53 -04:00
parent 23e4005c55
commit 4941a3e32e
3 changed files with 8 additions and 5 deletions

View file

@ -29,8 +29,8 @@ classifiers =
packages = find:
install_requires =
mccabe>=0.7.0,<0.8.0
pycodestyle>=2.13.0,<2.14.0
pyflakes>=3.3.0,<3.4.0
pycodestyle>=2.14.0,<2.15.0
pyflakes>=3.4.0,<3.5.0
python_requires = >=3.9
package_dir =
=src

View file

@ -36,6 +36,7 @@ FLAKE8_PYFLAKES_CODES = {
"StringDotFormatMissingArgument": "F524",
"StringDotFormatMixingAutomatic": "F525",
"FStringMissingPlaceholders": "F541",
"TStringMissingPlaceholders": "F542",
"MultiValueRepeatedKeyLiteral": "F601",
"MultiValueRepeatedKeyVariable": "F602",
"TooManyExpressionsInStarredAssignment": "F621",

View file

@ -41,9 +41,11 @@ def test_oserrors_are_reraised():
err = OSError(errno.EAGAIN, "Ominous message")
with mock.patch("_multiprocessing.SemLock", side_effect=err):
manager = _parallel_checker_manager()
with mock.patch.object(manager, "run_serial") as serial:
with pytest.raises(OSError):
manager.run()
with (
mock.patch.object(manager, "run_serial") as serial,
pytest.raises(OSError),
):
manager.run()
assert serial.call_count == 0