PT013 found incorrect import of pytest, use simple 'import pytest' instead Examples Bad code: import pytest as pt from pytest import fixture Good code: import pytest Rationale to enforce consistency to help the linter check usage of members imported from pytest