Esempio n. 1
0
    def prepare(self):
        """Make some preparations in feature branch for running doxygen.

        This includes a copy of doc/doxygen.conf to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('doc/doxygen.conf', self.doxyconf_file)
Esempio n. 2
0
    def prepare(self):
        """Make some preparations in feature branch for running doxygen.

        This includes a copy of doc/doxygen.conf to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('doc/doxygen.conf', self.doxyconf_file)
    def prepare(self):
        """Make some preparations in feature branch for running pycodestyle.

        This includes a copy of tools/qa/pycodestyle to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/%s' % os.path.basename(self.config_file), self.config_file)
Esempio n. 4
0
    def prepare(self):
        """Make some preparations in feature branch for running pylint.

        This includes a copy of tools/qa/pylintrc to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/pylintrc', self.rcfile)
Esempio n. 5
0
    def prepare(self):
        """Make some preparations in feature branch for running pep8.

        This includes a copy of tools/qa/pep8 to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/pep8', self.config_file)
Esempio n. 6
0
    def prepare(self):
        """Make some preparations in feature branch for running pylint.

        This includes a copy of tools/qa/pylintrc to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/pylintrc', self.rcfile)
Esempio n. 7
0
    def prepare(self):
        """Make some preparations in feature branch for running pycodestyle.

        This includes a copy of tools/qa/pycodestyle to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/%s' % os.path.basename(self.config_file),
                    self.config_file)
Esempio n. 8
0
    def prepare(self):
        """Make some preparations in feature branch for running cpplint.py.

        This includes a copy of cpplint.py to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/cpplint.py', self.cpplint_file)
        os.chmod(self.cpplint_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
Esempio n. 9
0
    def prepare(self):
        """Make some preparations in feature branch for running cpplint.py.

        This includes a copy of cpplint.py to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        shutil.copy('tools/qa/cpplint.py', self.cpplint_file)
        os.chmod(self.cpplint_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
Esempio n. 10
0
    def prepare(self):
        """Make some preparations in feature branch for running pylint.

        This includes a copy of tools/qa/pylintrc to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        qatooldir = os.path.dirname(os.path.abspath(__file__))
        shutil.copy(os.path.join(qatooldir, 'pylintrc'), self.rcfile)
Esempio n. 11
0
    def prepare(self):
        """Make some preparations in feature branch for running cpplint.py.

        This includes a copy of cpplint.py to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        qatooldir = os.path.dirname(os.path.abspath(__file__))
        shutil.copy(os.path.join(qatooldir, 'cpplint.py'), self.cpplint_file)
        os.chmod(self.cpplint_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
Esempio n. 12
0
    def prepare(self):
        """Make some preparations in feature branch for running pycodestyle.

        This includes a copy of tools/qa/pycodestyle to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        qatooldir = os.path.dirname(os.path.abspath(__file__))
        shutil.copy(
            os.path.join(qatooldir, os.path.basename(self.config_file)),
            self.config_file)
Esempio n. 13
0
    def prepare(self):
        """Make some preparations in feature branch for running doxygen.

        This includes a copy of doc/doxygen.conf to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
        qatooldir = os.path.dirname(os.path.abspath(__file__))
        project_root = os.path.dirname(os.path.dirname(qatooldir))
        doxygencfg = os.path.join(project_root, "doc", "doxygen.conf"),
        shutil.copy(doxygencfg, self.doxyconf_file)
Esempio n. 14
0
    def add_argparse_arguments(self, parser):
        """Add command-line arguments to the argument parser.

        Parameters
        ----------
        parser : argparse.ArgumentParser
            The parser to which arguments must be added.
        """
        TrapdoorProgram.add_argparse_arguments(self, parser)
        parser.add_argument(
            '--nproc',
            type=int,
            default=1,
            help='Number of parallel processes when running nose. '
            '[default=%(default)s]')
Esempio n. 15
0
    def add_argparse_arguments(self, parser):
        """Add command-line arguments to the argument parser.

        Parameters
        ----------
        parser : argparse.ArgumentParser
            The parser to which arguments must be added.
        """
        TrapdoorProgram.add_argparse_arguments(self, parser)
        parser.add_argument(
            "--nproc",
            type=int,
            default=1,
            help="Number of parallel processes when running nose. " "[default=%(default)s]",
        )
Esempio n. 16
0
 def __init__(self):
     """Initialize a PEP257TrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pep257')
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
     self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
Esempio n. 18
0
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
Esempio n. 19
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Esempio n. 20
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
Esempio n. 21
0
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
Esempio n. 22
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
     self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
Esempio n. 23
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
Esempio n. 24
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Esempio n. 25
0
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
Esempio n. 26
0
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(
         os.path.join(self.qaworkdir, 'doxygen.conf'))
Esempio n. 27
0
    def prepare(self):
        """Make some preparations in feature branch for running pycodestyle.

        This includes a copy of tools/qa/pycodestyle to QAWORKDIR.
        """
        TrapdoorProgram.prepare(self)
Esempio n. 28
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
Esempio n. 29
0
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
Esempio n. 30
0
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'namespace')
Esempio n. 31
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
Esempio n. 32
0
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, "namespace")
Esempio n. 33
0
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pydocstyle')
Esempio n. 34
0
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(os.path.join(self.qaworkdir, 'doxygen.conf'))
Esempio n. 35
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
Esempio n. 36
0
 def __init__(self):
     """Initialize the PEP8TrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pep8')
     self.config_file = os.path.join(self.qaworkdir, 'pep8')
Esempio n. 37
0
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, "pydocstyle")
Esempio n. 38
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')