title: How to disable PytestDeprecationWarning: direct construction of Flake8Item has been deprecated, please use Flake8Item.from_parent
body: <ul>
  <li>When I run <code>python setup.py test</code> command in my project folder to test my package with <code>setup.cfg</code> configuration I got this warning message.</li>
  <li>How can I disable it?</li>
  </ul>
  <blockquote>
  <p><code>python setup.py test</code> acts like <code>pytest --flake8</code> command.</p>
  </blockquote>
  <pre><code>============================================================================================== warnings summary =============================================================================================== 
  c:\users\yedhrab\appdata\local\programs\python\python38\lib\site-packages\pytest_flake8.py:65
    c:\users\yedhrab\appdata\local\programs\python\python38\lib\site-packages\pytest_flake8.py:65: PytestDeprecationWarning: direct construction of Flake8Item has been deprecated, please use Flake8Item.from_parent
      return Flake8Item(
  
  -- Docs: https://docs.pytest.org/en/latest/warnings.html
  =========================================================================================== short test summary info =========================================================================================== 
  SKIPPED [1] c:\users\***\appdata\local\programs\python\python38\lib\site-packages\pytest_flake8.py:106: file(s) previously passed FLAKE8 checks
  =================================================================================== 9 passed, 1 skipped, 1 warning in 0.33s =================================================================================== 
  </code></pre>