Exemple #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)
    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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
    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)
    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)
Exemple #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)
    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)
    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]')
Exemple #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]",
        )
Exemple #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')
Exemple #18
0
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Exemple #20
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
Exemple #22
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
     self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
Exemple #23
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
Exemple #24
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Exemple #25
0
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(
         os.path.join(self.qaworkdir, 'doxygen.conf'))
Exemple #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)
Exemple #28
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
Exemple #30
0
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'namespace')
Exemple #31
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, "namespace")
Exemple #33
0
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pydocstyle')
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(os.path.join(self.qaworkdir, 'doxygen.conf'))
Exemple #35
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
Exemple #36
0
 def __init__(self):
     """Initialize the PEP8TrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pep8')
     self.config_file = os.path.join(self.qaworkdir, 'pep8')
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, "pydocstyle")
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')