text: """
  Module for testing if the code is PEP8 compliant.
  """
  
  from flake8.api import legacy as flake8
  
  
  def test_regular_files():
  
      style_guide = flake8.get_style_guide(
          filename=['*.py'],
          exclude=['doc', '.eggs', '*.egg', 'build', 'benchmark.py'],
          select=['E', 'W', 'F'],
      )
  
      report = style_guide.check_files()
  
      assert report.get_statistics('E') == []
      assert report.get_statistics('W') == []
      assert report.get_statistics('F') == []
  
  
  def test_cython_files():
  
      style_guide = flake8.get_style_guide(
          filename=['*.pyx', '*.px'],
          exclude=['doc', '.eggs', '*.egg', 'build', 'setup.py'],
          select=['E', 'W', 'F'],
          ignore=['E225']
      )
  
      report = style_guide.check_files()
  
      assert report.get_statistics('E') == []
      assert report.get_statistics('W') == []
      assert report.get_statistics('F') == []
  