
from testtube.helpers import Flake8, Helper, Nosetests


class ScreenClearer(Helper):
    command = 'clear'

    def success(self, *args):
        pass


class Isort(Helper):
    command = 'isort'

    def get_args(self):
        return ['--check']


class UnitTests(Nosetests):
    """Run test cases in the tests/ directory."""

    def get_args(self, *args, **kwargs):
        return ['-x', '--with-doctest', '--doctest-options=+ELLIPSIS',
                '--doctest-extension=rst']


clear = ScreenClearer(all_files=True)
lint_style = Flake8(all_files=True)
unit_tests = UnitTests(all_files=True)

PATTERNS = (
    (r'.*\.(py|rst)$', [clear, unit_tests], {'fail_fast': True}),
    (r'.*\.py$', [lint_style], {'fail_fast': True}),
)


from testtube.helpers import Flake8, Helper, Nosetests


class ScreenClearer(Helper):
    command = 'clear'

    def success(self, *args):
        pass


class Isort(Helper):
    command = 'isort'

    def get_args(self):
        return ['--check']


class UnitTests(Nosetests):
    def get_args(self, *args, **kwargs):
        return ['-x', '--with-doctest', '--doctest-options=+ELLIPSIS',
                '--doctest-extension=rst']


clear = ScreenClearer(all_files=True)
lint_style = Flake8(all_files=True)
unit_tests = UnitTests(all_files=True)

PATTERNS = (
    (r'.*\.(py|rst)$', [clear, unit_tests], {'fail_fast': True}),
    (r'.*\.py$', [lint_style], {'fail_fast': True}),
)

Remove dirty lies from doctstring
Remove dirty lies from doctstring

This was a leftover from wherever I originally copied this config from.

  
  from testtube.helpers import Flake8, Helper, Nosetests
  
  
  class ScreenClearer(Helper):
      command = 'clear'
  
      def success(self, *args):
          pass
  
  
  class Isort(Helper):
      command = 'isort'
  
      def get_args(self):
          return ['--check']
  
  
  class UnitTests(Nosetests):
-     """Run test cases in the tests/ directory."""
- 
      def get_args(self, *args, **kwargs):
          return ['-x', '--with-doctest', '--doctest-options=+ELLIPSIS',
                  '--doctest-extension=rst']
  
  
  clear = ScreenClearer(all_files=True)
  lint_style = Flake8(all_files=True)
  unit_tests = UnitTests(all_files=True)
  
  PATTERNS = (
      (r'.*\.(py|rst)$', [clear, unit_tests], {'fail_fast': True}),
      (r'.*\.py$', [lint_style], {'fail_fast': True}),
  )
  
Remove dirty lies from doctstring
## Code Before:

from testtube.helpers import Flake8, Helper, Nosetests


class ScreenClearer(Helper):
    command = 'clear'

    def success(self, *args):
        pass


class Isort(Helper):
    command = 'isort'

    def get_args(self):
        return ['--check']


class UnitTests(Nosetests):
    """Run test cases in the tests/ directory."""

    def get_args(self, *args, **kwargs):
        return ['-x', '--with-doctest', '--doctest-options=+ELLIPSIS',
                '--doctest-extension=rst']


clear = ScreenClearer(all_files=True)
lint_style = Flake8(all_files=True)
unit_tests = UnitTests(all_files=True)

PATTERNS = (
    (r'.*\.(py|rst)$', [clear, unit_tests], {'fail_fast': True}),
    (r'.*\.py$', [lint_style], {'fail_fast': True}),
)

## Instruction:
Remove dirty lies from doctstring
## Code After:

from testtube.helpers import Flake8, Helper, Nosetests


class ScreenClearer(Helper):
    command = 'clear'

    def success(self, *args):
        pass


class Isort(Helper):
    command = 'isort'

    def get_args(self):
        return ['--check']


class UnitTests(Nosetests):
    def get_args(self, *args, **kwargs):
        return ['-x', '--with-doctest', '--doctest-options=+ELLIPSIS',
                '--doctest-extension=rst']


clear = ScreenClearer(all_files=True)
lint_style = Flake8(all_files=True)
unit_tests = UnitTests(all_files=True)

PATTERNS = (
    (r'.*\.(py|rst)$', [clear, unit_tests], {'fail_fast': True}),
    (r'.*\.py$', [lint_style], {'fail_fast': True}),
)
