remove flake8 and suggest pycqa/flake8

This commit is contained in:
Anthony Sottile 2020-05-14 16:00:29 -07:00
parent acd6b162ce
commit b9cc9d7761
6 changed files with 41 additions and 28 deletions

View file

@ -1,10 +0,0 @@
import pytest
from pre_commit_hooks.autopep8_wrapper import main
def test_invariantly_fails():
with pytest.raises(SystemExit) as excinfo:
main()
msg, = excinfo.value.args
assert 'https://github.com/pre-commit/mirrors-autopep8' in msg

16
tests/removed_test.py Normal file
View file

@ -0,0 +1,16 @@
import pytest
from pre_commit_hooks.removed import main
def test_always_fails():
with pytest.raises(SystemExit) as excinfo:
main((
'autopep8-wrapper', 'autopep8',
'https://github.com/pre-commit/mirrors-autopep8',
))
msg, = excinfo.value.args
assert msg == (
'`autopep8-wrapper` has been removed -- '
'use `autopep8` from https://github.com/pre-commit/mirrors-autopep8'
)