- Fix #18 plugin crash when test case is marked with a non-pytest.mark decorator
- Fix pytest fixture collection error on non-test modules
- W6402
useless-pytest-mark-decorator
: add warning for using pytest.mark on fixtures (thanks to @DKorytkin) - W6403
deprecated-positional-argument-for-pytest-fixture
: add warning for positional arguments to pytest.fixture() (thanks to @DKorytkin) - F6401
cannot-enumerate-pytest-fixtures
: add fatal error when the plugin cannot enumerate and collect pytest fixtures for analysis (#27)
- Fix #13 regression caused by mangling
sys.modules
- Fix pytest Module already imported so cannot be rewritten warning when the package being linted was used by pytest/conftest already (#10)
- Fix missing Python version constraint (#11)
- Suppressing FP
unused-import
when fixtures defined elsewhere are imported intoconftest.py
but not directly used (#2)
- Python 3.9 support
- Python 2.7 & 3.5 support
- Fix not able to work with
pytest-xdist
plugin when--dist loadfile
is set in configuration file (#5)
- W6401
deprecated-pytest-yield-fixture
: add warning for yield_fixture functions
- Fix incorrect path separator for Windows (#1)
- Suppressing FP
no-member
from using workaround of accessing cls in setup fixture
- Refactor plugin to group patches and augmentations
- Fix fixtures defined with
@pytest.yield_fixture
decorator still showing FP - Fix crashes when using fixture + if + inline import
- Fix crashes when relatively importing fixtures (
from ..conftest import fixture
)
- Fix crashes when
*args
or**kwargs
is used in FuncDef
- Suppressing FP
unused-import
with tests - Suppressing FP
unused-argument
with tests - Suppressing FP
redefined-outer-scope
with tests - Add CI/CD configuration with Travis CI