carsongee / pytest-pylint

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

DeprecationWarning: BaseReporter using __implements__ #167

Closed rgilton closed 2 years ago

rgilton commented 2 years ago

When I run pytest --pylint, I get this warning:

../../../../../../.local/share/virtualenvs/server-IJExtVut/lib/python3.10/site-packages/pylint/reporters/base_reporter.py:35
  /home/rob/.local/share/virtualenvs/server-IJExtVut/lib/python3.10/site-packages/pylint/reporters/base_reporter.py:35: DeprecationWarning: Using the __implements__ inheritance pattern for BaseReporter is no longer supported. Child classes should only inherit BaseReporter
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
rgilton commented 2 years ago

Here's the workaround I'm using for the moment: pytest --pylint -W ignore::DeprecationWarning:pylint.reporters.base_reporter:35

The -W flag suppresses that DeprecationWarning until there's a fix.