mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 02:26:54 +00:00
Merge pull request #1985 from PyCQA/upgrade-deps
upgrade pyflakes / pycodestyle
This commit is contained in:
commit
70a15b8890
3 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ FLAKE8_PYFLAKES_CODES = {
|
|||
"StringDotFormatMissingArgument": "F524",
|
||||
"StringDotFormatMixingAutomatic": "F525",
|
||||
"FStringMissingPlaceholders": "F541",
|
||||
"TStringMissingPlaceholders": "F542",
|
||||
"MultiValueRepeatedKeyLiteral": "F601",
|
||||
"MultiValueRepeatedKeyVariable": "F602",
|
||||
"TooManyExpressionsInStarredAssignment": "F621",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue