mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 23:34:17 +00:00
Update hooks and use autopep8 + add-trailing-comma instead of black
This commit is contained in:
parent
23d2a8517e
commit
5fab0d1887
33 changed files with 110 additions and 102 deletions
|
|
@ -314,7 +314,7 @@ def test_cli_config_option_respected(tmp_path):
|
|||
"""\
|
||||
[flake8]
|
||||
ignore = F401
|
||||
"""
|
||||
""",
|
||||
)
|
||||
|
||||
py_file = tmp_path / "t.py"
|
||||
|
|
@ -330,7 +330,7 @@ def test_cli_isolated_overrides_config_option(tmp_path):
|
|||
"""\
|
||||
[flake8]
|
||||
ignore = F401
|
||||
"""
|
||||
""",
|
||||
)
|
||||
|
||||
py_file = tmp_path / "t.py"
|
||||
|
|
@ -364,7 +364,7 @@ def test_output_file(tmpdir, capsys):
|
|||
|
||||
def test_early_keyboard_interrupt_does_not_crash(capsys):
|
||||
with mock.patch.object(
|
||||
config, "load_config", side_effect=KeyboardInterrupt
|
||||
config, "load_config", side_effect=KeyboardInterrupt,
|
||||
):
|
||||
assert cli.main(["does-not-exist"]) == 1
|
||||
out, err = capsys.readouterr()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue