Merge pull request #1985 from PyCQA/upgrade-deps

upgrade pyflakes / pycodestyle
This commit is contained in:
Anthony Sottile 2025-06-20 15:20:10 -04:00 committed by GitHub
commit 70a15b8890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

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

View file

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

View file

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