import glob
import os
import pep8


class TestCodeFormat:
    def test_pep8(self):
        def match(*p):
            s = list(p) + ['*.py']
            return glob.glob(os.path.join(*s))
        pep8style = pep8.StyleGuide(config_file='setup.cfg')
        result = pep8style.check_files(
            match('examples') +
            match('test') +
            match('pagoda'))
        assert result.total_errors == 0

import glob
import os
import pep8


class TestCodeFormat:
    def test_pep8(self):
        def match(*p):
            s = list(p) + ['*.py']
            return glob.glob(os.path.join(*s))
        pep8style = pep8.StyleGuide(config_file='setup.cfg')
        result = pep8style.check_files(
            match('examples') +
            match('scripts') +
            match('test') +
            match('pagoda'))
        assert result.total_errors == 0

Include scripts in style check.
Include scripts in style check.

  import glob
  import os
  import pep8
  
  
  class TestCodeFormat:
      def test_pep8(self):
          def match(*p):
              s = list(p) + ['*.py']
              return glob.glob(os.path.join(*s))
          pep8style = pep8.StyleGuide(config_file='setup.cfg')
          result = pep8style.check_files(
              match('examples') +
+             match('scripts') +
              match('test') +
              match('pagoda'))
          assert result.total_errors == 0
  
Include scripts in style check.
## Code Before:
import glob
import os
import pep8


class TestCodeFormat:
    def test_pep8(self):
        def match(*p):
            s = list(p) + ['*.py']
            return glob.glob(os.path.join(*s))
        pep8style = pep8.StyleGuide(config_file='setup.cfg')
        result = pep8style.check_files(
            match('examples') +
            match('test') +
            match('pagoda'))
        assert result.total_errors == 0

## Instruction:
Include scripts in style check.
## Code After:
import glob
import os
import pep8


class TestCodeFormat:
    def test_pep8(self):
        def match(*p):
            s = list(p) + ['*.py']
            return glob.glob(os.path.join(*s))
        pep8style = pep8.StyleGuide(config_file='setup.cfg')
        result = pep8style.check_files(
            match('examples') +
            match('scripts') +
            match('test') +
            match('pagoda'))
        assert result.total_errors == 0
