mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
remove flake8 and suggest pycqa/flake8
This commit is contained in:
parent
acd6b162ce
commit
b9cc9d7761
6 changed files with 41 additions and 28 deletions
|
|
@ -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
16
tests/removed_test.py
Normal 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'
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue