carsongee / pytest-pylint

pytest plugin for running pylint against your codebase
MIT License
75 stars 34 forks source link

Deprecation warning with recent pytest #168

Closed rgilton closed 2 years ago

rgilton commented 2 years ago

With pytest 7.1.2, I get the following warning:

../../../../../../.local/share/virtualenvs/server-IJExtVut/lib/python3.10/site-packages/pytest_pylint/plugin.py:295: 129 warnings
  /home/rob/.local/share/virtualenvs/server-IJExtVut/lib/python3.10/site-packages/pytest_pylint/plugin.py:295: PytestRemovedIn8Warning: The (fspath: py.path.local) argument to PylintFile is deprecated. Please use the (path: pathlib.Path) argument instead.
  See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
    _self = getattr(super(), 'from_parent', cls)(parent, fspath=fspath)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Current workaround: pytest -W ignore:::pytest_pylint.plugin:295

carsongee commented 2 years ago

Duplicate of #166