mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +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:
|
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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue