mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
remove warnings checks
this wasn't all that useful -- and most of it was for checking python 2 things
This commit is contained in:
parent
d6cc8a1419
commit
ebce88c13d
1 changed files with 0 additions and 18 deletions
|
|
@ -21,24 +21,6 @@ from testing.util import cwd
|
|||
from testing.util import git_commit
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def no_warnings(recwarn):
|
||||
yield
|
||||
warnings = []
|
||||
for warning in recwarn: # pragma: no cover
|
||||
message = str(warning.message)
|
||||
# ImportWarning: Not importing directory '...' missing __init__(.py)
|
||||
if not (
|
||||
isinstance(warning.message, ImportWarning) and
|
||||
message.startswith('Not importing directory ') and
|
||||
' missing __init__' in message
|
||||
):
|
||||
warnings.append(
|
||||
f'{warning.filename}:{warning.lineno} {message}',
|
||||
)
|
||||
assert not warnings
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tempdir_factory(tmpdir):
|
||||
class TmpdirFactory:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue